github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/.github/workflows/multipart/docker-compose-site1.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://site1-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    site1-minio1:
    16      <<: *minio-common
    17      hostname: site1-minio1
    18      volumes:
    19        - site1-data1-1:/data1
    20        - site1-data1-2:/data2
    21  
    22    site1-minio2:
    23      <<: *minio-common
    24      hostname: site1-minio2
    25      volumes:
    26        - site1-data2-1:/data1
    27        - site1-data2-2:/data2
    28  
    29    site1-minio3:
    30      <<: *minio-common
    31      hostname: site1-minio3
    32      volumes:
    33        - site1-data3-1:/data1
    34        - site1-data3-2:/data2
    35  
    36    site1-minio4:
    37      <<: *minio-common
    38      hostname: site1-minio4
    39      volumes:
    40        - site1-data4-1:/data1
    41        - site1-data4-2:/data2
    42  
    43    site1-nginx:
    44      image: nginx:1.19.2-alpine
    45      hostname: site1-nginx
    46      volumes:
    47        - ./nginx-site1.conf:/etc/nginx/nginx.conf:ro
    48      ports:
    49        - "9001:9001"
    50      depends_on:
    51        - site1-minio1
    52        - site1-minio2
    53        - site1-minio3
    54        - site1-minio4
    55  
    56  ## By default this config uses default local driver,
    57  ## For custom volumes replace with volume driver configuration.
    58  volumes:
    59    site1-data1-1:
    60    site1-data1-2:
    61    site1-data2-1:
    62    site1-data2-2:
    63    site1-data3-1:
    64    site1-data3-2:
    65    site1-data4-1:
    66    site1-data4-2: