-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.1 KB
/
docker-compose.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
version: "3.0"
services:
minio0:
image: minio/minio:RELEASE.2021-06-09T18-51-39Z
container_name: minio0
command: server data{0...3}
volumes:
- "data0:/data0"
- "data1:/data1"
- "data2:/data2"
- "data3:/data3"
environment:
MINIO_ACCESS_KEY: "${MINIO_ACCESS_KEY}"
MINIO_SECRET_KEY: "${MINIO_SECRET_KEY}"
ports:
- 9000:9000
minio1:
image: minio/minio:RELEASE.2021-06-09T18-51-39Z
container_name: minio1
command: server data{4...7}
volumes:
- "data4:/data4"
- "data5:/data5"
- "data6:/data6"
- "data7:/data7"
environment:
MINIO_ACCESS_KEY: "${MINIO_ACCESS_KEY}"
MINIO_SECRET_KEY: "${MINIO_SECRET_KEY}"
ports:
- 9001:9000
replication_setup:
image: minio/mc:RELEASE.2021-06-08T01-29-37Z
entrypoint: "/scripts/setup.sh"
command: "${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY}"
volumes:
- "./policies:/policies:ro"
- "./scripts:/scripts:ro"
depends_on:
- "minio0"
- "minio1"
volumes:
data0:
data1:
data2:
data3:
data4:
data5:
data6:
data7: