-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (45 loc) · 1.14 KB
/
docker-compose.yaml
File metadata and controls
48 lines (45 loc) · 1.14 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
version: '3.7'
services:
minio1:
image: minio/minio:RELEASE.2020-12-12T08-39-07Z
volumes:
- .docker/minio/data1-1:/data1
- .docker/minio/data1-2:/data2
expose:
- "9000"
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: password@123
command: server http://minio{1...2}/data{1...2}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
minio2:
image: minio/minio:RELEASE.2020-12-12T08-39-07Z
volumes:
- .docker/minio/data2-1:/data1
- .docker/minio/data2-2:/data2
expose:
- "9000"
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: password@123
command: server http://minio{1...2}/data{1...2}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
minio-nginx:
image: nginx:1.19.2-alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
expose:
- "9000"
ports:
- "9000:9000"
depends_on:
- minio1
- minio2