github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/buildscripts/upgrade-tests/compose.yml (about)

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