· 7 years ago · Jul 20, 2018, 05:30 PM
1version: '3.1'
2
3services:
4 minio1:
5 image: minio/minio:RELEASE.2018-07-13T00-09-07Z
6 volumes:
7 - minio1-data:/export
8 ports:
9 - "9001:9000"
10 networks:
11 - minio_distributed
12 command: server 192.168.2.130/export1 192.168.2.131/export2 192.168.2.135/export3 192.168.2.136.export4
13 secrets:
14 - secret_key
15 - access_key
16
17 minio2:
18 image: minio/minio:RELEASE.2018-07-13T00-09-07Z
19 volumes:
20 - minio2-data:/export
21 ports:
22 - "9002:9000"
23 networks:
24 - minio_distributed
25 command: server 192.168.2.130/export1 192.168.2.131/export2 192.168.2.135/export3 192.168.2.136.export4
26 secrets:
27 - secret_key
28 - access_key
29
30 minio3:
31 image: minio/minio:RELEASE.2018-07-13T00-09-07Z
32 volumes:
33 - minio3-data:/export
34 ports:
35 - "9003:9000"
36 networks:
37 - minio_distributed
38 command: server 192.168.2.130/export1 192.168.2.131/export2 192.168.2.135/export3 192.168.2.136.export4
39 secrets:
40 - secret_key
41 - access_key
42
43 minio4:
44 image: minio/minio:RELEASE.2018-07-13T00-09-07Z
45 volumes:
46 - minio4-data:/export
47 ports:
48 - "9004:9000"
49 networks:
50 - minio_distributed
51 command: server 192.168.2.130/export1 192.168.2.131/export2 192.168.2.135/export3 192.168.2.136.export4
52 secrets:
53 - secret_key
54 - access_key
55
56volumes:
57 minio1-data:
58
59 minio2-data:
60
61 minio3-data:
62
63 minio4-data:
64
65networks:
66 minio_distributed:
67 driver: overlay
68
69secrets:
70 secret_key:
71 external: true
72 access_key:
73 external: true