代码拉取完成,页面将自动刷新
version: '3'
services:
minio-node1:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/minio:20230619
container_name: minio-node1
hostname: minio-node1
restart: always
privileged: true
env_file:
- .env
expose:
- "${MinIO_PORT}"
ports:
- "${MinIO_HTTP_PORT}"
volumes:
- /opt/apache/docker-compose-minio/data/minio-node1/data1:/opt/apache/minio/data/export1
- /opt/apache/docker-compose-minio/data/minio-node1/data2:/opt/apache/minio/data/export2
- /opt/apache/docker-compose-minio/data/minio-node1/data3:/opt/apache/minio/data/export3
- /opt/apache/docker-compose-minio/data/minio-node1/data4:/opt/apache/minio/data/export4
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${MinIO_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
minio-node2:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/minio:20230619
container_name: minio-node2
hostname: minio-node2
restart: always
privileged: true
env_file:
- .env
expose:
- "${MinIO_PORT}"
ports:
- "${MinIO_HTTP_PORT}"
volumes:
- /opt/apache/docker-compose-minio/data/minio-node2/data1:/opt/apache/minio/data/export1
- /opt/apache/docker-compose-minio/data/minio-node2/data2:/opt/apache/minio/data/export2
- /opt/apache/docker-compose-minio/data/minio-node2/data3:/opt/apache/minio/data/export3
- /opt/apache/docker-compose-minio/data/minio-node2/data4:/opt/apache/minio/data/export4
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${MinIO_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
minio-node3:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/minio:20230619
container_name: minio-node3
hostname: minio-node3
restart: always
privileged: true
env_file:
- .env
expose:
- "${MinIO_PORT}"
ports:
- "${MinIO_HTTP_PORT}"
volumes:
- /opt/apache/docker-compose-minio/data/minio-node3/data1:/opt/apache/minio/data/export1
- /opt/apache/docker-compose-minio/data/minio-node3/data2:/opt/apache/minio/data/export2
- /opt/apache/docker-compose-minio/data/minio-node3/data3:/opt/apache/minio/data/export3
- /opt/apache/docker-compose-minio/data/minio-node3/data4:/opt/apache/minio/data/export4
command: ["sh","-c","/opt/apache/bootstrap.sh"]
networks:
- hadoop-network
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :${MinIO_PORT} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
# 连接外部网络
networks:
hadoop-network:
external: true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。