-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (104 loc) · 2.24 KB
/
docker-compose.yml
File metadata and controls
111 lines (104 loc) · 2.24 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
x-minio-common: &minio-common
build:
context: ./docker/minio
dockerfile: Dockerfile
args:
MINIO_VERSION: RELEASE.2025-10-15T17-29-55Z
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MC_HOST_local=http://${MINIO_ROOT_USER}:${MINIO_ROOT_PASSWORD}@localhost:9000
command: server --console-address ":9001" http://minio{1...4}/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 3s
retries: 3
start_period: 10s
networks:
- ironbuckets
services:
minio1:
<<: *minio-common
container_name: ironbuckets-minio1
hostname: minio1
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio1_data:/data
minio2:
<<: *minio-common
container_name: ironbuckets-minio2
hostname: minio2
ports:
- "9002:9000"
- "9003:9001"
volumes:
- minio2_data:/data
minio3:
<<: *minio-common
container_name: ironbuckets-minio3
hostname: minio3
ports:
- "9004:9000"
- "9005:9001"
volumes:
- minio3_data:/data
minio4:
<<: *minio-common
container_name: ironbuckets-minio4
hostname: minio4
ports:
- "9006:9000"
- "9007:9001"
volumes:
- minio4_data:/data
app:
build:
context: .
dockerfile: Dockerfile
container_name: ironbuckets-app
ports:
- "8080:8080"
environment:
# App connects to MinIO via container network (any node works)
- MINIO_ENDPOINT=minio1:9000
depends_on:
minio1:
condition: service_healthy
minio2:
condition: service_healthy
minio3:
condition: service_healthy
minio4:
condition: service_healthy
networks:
- ironbuckets
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"-O",
"/dev/null",
"http://localhost:8080/health",
]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
networks:
ironbuckets:
driver: bridge
volumes:
minio1_data:
driver: local
minio2_data:
driver: local
minio3_data:
driver: local
minio4_data:
driver: local