github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/.github/workflows/multipart/docker-compose-site2.yaml (about)

     1  version: '3.7'
     2  
     3  # Settings and configurations that are common for all containers
     4  x-minio-common: &minio-common
     5    image: quay.io/minio/minio:${RELEASE}
     6    command: server http://site2-minio{1...4}/data{1...2}
     7    environment:
     8      - MINIO_PROMETHEUS_AUTH_TYPE=public
     9      - CI=true
    10  
    11  # starts 4 docker containers running minio server instances.
    12  # using nginx reverse proxy, load balancing, you can access
    13  # it through port 9000.
    14  services:
    15    site2-minio1:
    16      <<: *minio-common
    17      hostname: site2-minio1
    18      volumes:
    19        - site2-data1-1:/data1
    20        - site2-data1-2:/data2
    21  
    22    site2-minio2:
    23      <<: *minio-common
    24      hostname: site2-minio2
    25      volumes:
    26        - site2-data2-1:/data1
    27        - site2-data2-2:/data2
    28  
    29    site2-minio3:
    30      <<: *minio-common
    31      hostname: site2-minio3
    32      volumes:
    33        - site2-data3-1:/data1
    34        - site2-data3-2:/data2
    35  
    36    site2-minio4:
    37      <<: *minio-common
    38      hostname: site2-minio4
    39      volumes:
    40        - site2-data4-1:/data1
    41        - site2-data4-2:/data2
    42  
    43    site2-nginx:
    44      image: nginx:1.19.2-alpine
    45      hostname: site2-nginx
    46      volumes:
    47        - ./nginx-site2.conf:/etc/nginx/nginx.conf:ro
    48      ports:
    49        - "9002:9002"
    50      depends_on:
    51        - site2-minio1
    52        - site2-minio2
    53        - site2-minio3
    54        - site2-minio4
    55  
    56  ## By default this config uses default local driver,
    57  ## For custom volumes replace with volume driver configuration.
    58  volumes:
    59    site2-data1-1:
    60    site2-data1-2:
    61    site2-data2-1:
    62    site2-data2-2:
    63    site2-data3-1:
    64    site2-data3-2:
    65    site2-data4-1:
    66    site2-data4-2: