1 Star 2 Fork 4

大数据老司机/docker-compose-minio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yaml 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
liugp 提交于 2年前 . init
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/hadoop-bigdata/docker-compose-minio.git
git@gitee.com:hadoop-bigdata/docker-compose-minio.git
hadoop-bigdata
docker-compose-minio
docker-compose-minio
master

搜索帮助