2 Star 1 Fork 1

roofox/minio-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose_bak.yaml 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
roofox 提交于 2021-12-10 05:36 . add docker-compose_bak.yaml.
version: '3.7'
# Settings and configurations that are common for all containers
x-minio-common: &minio-common
image: quay.io/minio/minio:RELEASE.2021-11-24T23-19-33Z
command: server --console-address ":9001" http://minio{1...4}/data{1...2}
expose:
- "9000"
- "9001"
environment:
TZ: Asia/Shanghai
MINIO_ROOT_USER: htfs_05193
MINIO_ROOT_PASSWORD: DFS*#06#@@Vondser
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
# starts 4 docker containers running minio server instances.
# using nginx reverse proxy, load balancing, you can access
# it through port 9000.
services:
minio1:
<<: *minio-common
hostname: minio1
restart: always
volumes:
- /data/docker/minio/data1-1:/data1
- /data/docker/minio/data1-2:/data2
minio2:
<<: *minio-common
hostname: minio2
restart: always
volumes:
- /data/docker/minio/data2-1:/data1
- /data/docker/minio/data2-2:/data2
minio3:
<<: *minio-common
hostname: minio3
restart: always
volumes:
- /data/docker/minio/data3-1:/data1
- /data/docker/minio/data3-2:/data2
minio4:
<<: *minio-common
hostname: minio4
restart: always
volumes:
- /data/docker/minio/data4-1:/data1
- /data/docker/minio/data4-2:/data2
nginx:
image: nginx:1.19.2-alpine
hostname: nginx
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
depends_on:
- minio1
- minio2
- minio3
- minio4
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/roofox/minio-docker.git
[email protected]:roofox/minio-docker.git
roofox
minio-docker
minio-docker
master

搜索帮助