Created
February 7, 2021 04:04
-
-
Save iamgini/a0d6cbe3c8f5e245d12d516ff44de6ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
minio1: | |
container_name: minio1 | |
image: minio/minio | |
hostname: minio1 | |
volumes: | |
- /opt/tbsystems/minio/minio-data1:/export | |
ports: | |
- "9001:9000" | |
networks: | |
- spring-cloud-network | |
mem_limit: 256m | |
memswap_limit: 256m | |
environment: | |
MINIO_ACCESS_KEY: minioaccesskey | |
MINIO_SECRET_KEY: miniosecretkey | |
command: server http://minio{1...4}/export | |
minio2: | |
container_name: minio2 | |
image: minio/minio | |
hostname: minio2 | |
volumes: | |
- /opt/tbsystems/minio/minio-data2:/export | |
ports: | |
- "9002:9000" | |
networks: | |
- spring-cloud-network | |
mem_limit: 256m | |
memswap_limit: 256m | |
environment: | |
MINIO_ACCESS_KEY: minioaccesskey | |
MINIO_SECRET_KEY: miniosecretkey | |
command: server http://minio{1...4}/export | |
minio3: | |
container_name: minio3 | |
image: minio/minio | |
hostname: minio3 | |
volumes: | |
- /opt/tbsystems/minio/minio-data3:/export | |
ports: | |
- "9003:9000" | |
networks: | |
- spring-cloud-network | |
mem_limit: 256m | |
memswap_limit: 256m | |
environment: | |
MINIO_ACCESS_KEY: minioaccesskey | |
MINIO_SECRET_KEY: miniosecretkey | |
command: server http://minio{1...4}/export | |
minio4: | |
container_name: minio4 | |
image: minio/minio | |
hostname: minio4 | |
volumes: | |
- /opt/tbsystems/minio/minio-data4:/export | |
ports: | |
- "9004:9004" | |
networks: | |
- spring-cloud-network | |
mem_limit: 256m | |
memswap_limit: 256m | |
environment: | |
MINIO_ACCESS_KEY: minioaccesskey | |
MINIO_SECRET_KEY: miniosecretkey | |
command: server http://minio{1...4}/export | |
nginx: | |
image: nginx:alpine | |
volumes: | |
- "/etc/nginx:/etc/nginx" | |
ports: | |
- "80:80" | |
- "8071:8071" | |
networks: | |
- spring-cloud-network | |
environment: | |
- NGINX_HOST=${NGINX_HOST} | |
command: /bin/sh -c "envsubst /etc/nginx/default.conf/nginx.conf && nginx -g 'daemon off;'" | |
restart: always | |
networks: | |
spring-cloud-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment