59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# MinIO节点1 (机器67)
|
|
minio1:
|
|
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
|
|
container_name: minio1
|
|
command: server --address ":9000" --console-address ":9001" http://minio{1...2}/data
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
MINIO_ROOT_USER: ruoyi
|
|
MINIO_ROOT_PASSWORD: ruoyi123
|
|
MINIO_COMPRESS: "off"
|
|
volumes:
|
|
- /docker/minio/data1:/data
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
networks:
|
|
- minio-cluster
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
|
|
# MinIO节点2 (机器68)
|
|
minio2:
|
|
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
|
|
container_name: minio2
|
|
command: server --address ":9000" --console-address ":9001" http://minio{1...2}/data
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
MINIO_ROOT_USER: ruoyi
|
|
MINIO_ROOT_PASSWORD: ruoyi123
|
|
MINIO_COMPRESS: "off"
|
|
volumes:
|
|
- /docker/minio/data2:/data
|
|
ports:
|
|
- "9002:9000"
|
|
- "9003:9001"
|
|
networks:
|
|
- minio-cluster
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
|
|
networks:
|
|
minio-cluster:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.20.0.0/16
|
|
|