-
Notifications
You must be signed in to change notification settings - Fork 0
/
minio-cluster.yml
94 lines (93 loc) · 3.13 KB
/
minio-cluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# https://hub.docker.com/r/bitnami/minio
services:
minio-cluster-node1:
image: ${MINIO_IMAGE}
container_name: minio-cluster-node1
restart: on-failure
environment:
- TZ=Asia/Shanghai
- MINIO_SKIP_CLIENT=yes
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio-cluster-node1,minio-cluster-node2,minio-cluster-node3,minio-cluster-node4
volumes:
- ${MINIO_CLUSTER_HOME}/node1/data:/data
- ${MINIO_CLUSTER_HOME}/node1/certs:/certs
networks:
- minio_cluster
ports:
- ${MINIO_CLUSTER_NODE1_PORT_9000}:9000
- ${MINIO_CLUSTER_NODE1_PORT_9001}:9001
healthcheck:
test: curl -f http://localhost:9000/minio/health/live
interval: 5s
minio-cluster-node2:
image: ${MINIO_IMAGE}
container_name: minio-cluster-node2
restart: on-failure
environment:
- TZ=Asia/Shanghai
- MINIO_SKIP_CLIENT=yes
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio-cluster-node1,minio-cluster-node2,minio-cluster-node3,minio-cluster-node4
volumes:
- ${MINIO_CLUSTER_HOME}/node2/data:/data
- ${MINIO_CLUSTER_HOME}/node2/certs:/certs
networks:
- minio_cluster
ports:
- ${MINIO_CLUSTER_NODE2_PORT_9000}:9000
- ${MINIO_CLUSTER_NODE2_PORT_9001}:9001
healthcheck:
test: curl -f http://localhost:9000/minio/health/live
interval: 5s
minio-cluster-node3:
image: ${MINIO_IMAGE}
container_name: minio-cluster-node3
restart: on-failure
environment:
- TZ=Asia/Shanghai
- MINIO_SKIP_CLIENT=yes
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio-cluster-node1,minio-cluster-node2,minio-cluster-node3,minio-cluster-node4
volumes:
- ${MINIO_CLUSTER_HOME}/node3/data:/data
- ${MINIO_CLUSTER_HOME}/node3/certs:/certs
networks:
- minio_cluster
ports:
- ${MINIO_CLUSTER_NODE3_PORT_9000}:9000
- ${MINIO_CLUSTER_NODE3_PORT_9001}:9001
healthcheck:
test: curl -f http://localhost:9000/minio/health/live
interval: 5s
minio-cluster-node4:
image: ${MINIO_IMAGE}
container_name: minio-cluster-node4
restart: on-failure
environment:
- TZ=Asia/Shanghai
- MINIO_SKIP_CLIENT=yes
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=minio-cluster-node1,minio-cluster-node2,minio-cluster-node3,minio-cluster-node4
volumes:
- ${MINIO_CLUSTER_HOME}/node4/data:/data
- ${MINIO_CLUSTER_HOME}/node4/certs:/certs
networks:
- minio_cluster
ports:
- ${MINIO_CLUSTER_NODE4_PORT_9000}:9000
- ${MINIO_CLUSTER_NODE4_PORT_9001}:9001
healthcheck:
test: curl -f http://localhost:9000/minio/health/live
interval: 5s
networks:
minio_cluster:
driver: bridge