storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/docs/orchestration/docker-swarm/docker-compose.yaml (about)

     1  version: '3.7'
     2  
     3  services:
     4    minio1:
     5      image: minio/minio:RELEASE.2021-04-22T15-44-28Z
     6      hostname: minio1
     7      volumes:
     8        - minio1-data:/export
     9      ports:
    10        - "9001:9000"
    11      networks:
    12        # On the internal you are exposed as minio1/2/3/4 by default
    13        internal:  {}
    14        minio_distributed:
    15          aliases:
    16            - minio-cluster
    17      environment:
    18        MINIO_ROOT_USER: AKIAIOSFODNN7EXAMPLE
    19        MINIO_ROOT_PASSWORD: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
    20      deploy:
    21        restart_policy:
    22          delay: 10s
    23          max_attempts: 10
    24          window: 60s
    25        placement:
    26          constraints:
    27            - node.labels.minio1==true
    28      command: server http://minio{1...4}/export
    29      healthcheck:
    30        test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
    31        interval: 30s
    32        timeout: 20s
    33        retries: 3
    34  
    35    minio2:
    36      image: minio/minio:RELEASE.2021-04-22T15-44-28Z
    37      hostname: minio2
    38      volumes:
    39        - minio2-data:/export
    40      ports:
    41        - "9002:9000"
    42      networks:
    43        # On the internal you are exposed as minio1/2/3/4 by default
    44        internal:  {}
    45        minio_distributed:
    46          aliases:
    47            - minio-cluster
    48      environment:
    49        MINIO_ROOT_USER: AKIAIOSFODNN7EXAMPLE
    50        MINIO_ROOT_PASSWORD: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
    51      deploy:
    52        restart_policy:
    53          delay: 10s
    54          max_attempts: 10
    55          window: 60s
    56        placement:
    57          constraints:
    58            - node.labels.minio2==true
    59      command: server http://minio{1...4}/export
    60      healthcheck:
    61        test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
    62        interval: 30s
    63        timeout: 20s
    64        retries: 3
    65  
    66    minio3:
    67      image: minio/minio:RELEASE.2021-04-22T15-44-28Z
    68      hostname: minio3
    69      volumes:
    70        - minio3-data:/export
    71      ports:
    72        - "9003:9000"
    73      networks:
    74        # On the internal you are exposed as minio1/2/3/4 by default
    75        internal:  {}
    76        minio_distributed:
    77          aliases:
    78            - minio-cluster
    79      environment:
    80        MINIO_ROOT_USER: AKIAIOSFODNN7EXAMPLE
    81        MINIO_ROOT_PASSWORD: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
    82      deploy:
    83        restart_policy:
    84          delay: 10s
    85          max_attempts: 10
    86          window: 60s
    87        placement:
    88          constraints:
    89            - node.labels.minio3==true
    90      command: server http://minio{1...4}/export
    91      healthcheck:
    92        test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
    93        interval: 1m30s
    94        timeout: 20s
    95        retries: 3
    96  
    97    minio4:
    98      image: minio/minio:RELEASE.2021-04-22T15-44-28Z
    99      hostname: minio4
   100      volumes:
   101        - minio4-data:/export
   102      ports:
   103        - "9004:9000"
   104      networks:
   105        # On the internal you are exposed as minio1/2/3/4 by default
   106        internal:  {}
   107        minio_distributed:
   108          aliases:
   109            - minio-cluster
   110      environment:
   111        MINIO_ROOT_USER: AKIAIOSFODNN7EXAMPLE
   112        MINIO_ROOT_PASSWORD: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
   113      deploy:
   114        restart_policy:
   115          delay: 10s
   116          max_attempts: 10
   117          window: 60s
   118        placement:
   119          constraints:
   120            - node.labels.minio4==true
   121      command: server http://minio{1...4}/export
   122      healthcheck:
   123        test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
   124        interval: 30s
   125        timeout: 20s
   126        retries: 3
   127  
   128  volumes:
   129    minio1-data:
   130  
   131    minio2-data:
   132  
   133    minio3-data:
   134  
   135    minio4-data:
   136  
   137  networks:
   138    minio_distributed:
   139      driver: overlay
   140    internal: {}