forked from Quentin-M/etcd-cloud-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.25 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
51
52
53
54
55
56
version: '3.1'
networks:
eco:
services:
eco-0:
build:
context: ../../
dockerfile: Dockerfile
command: ["-config=/etc/eco/eco.yaml", "-log-level=info"]
ports:
- 2378:2378
- 2379:2379
- 2380:2380
- 2381:2381
networks: [eco]
volumes:
- ./config.yaml:/etc/eco/eco.yaml
- ./data/eco-0:/var/lib
- /var/run/docker.sock:/var/run/docker.sock
privileged: true # required to inspect IP addresses
eco-1:
build:
context: ../../
dockerfile: Dockerfile
command: ["-config=/etc/eco/eco.yaml", "-log-level=info"]
ports:
- 2378
- 2379
- 2380
- 2381
networks: [eco]
volumes:
- ./config.yaml:/etc/eco/eco.yaml
- ./data/eco-1:/var/lib
- /var/run/docker.sock:/var/run/docker.sock
privileged: true # required to inspect IP addresses
eco-2:
build:
context: ../../
dockerfile: Dockerfile
command: ["-config=/etc/eco/eco.yaml", "-log-level=info"]
networks: [eco]
ports:
- 2378
- 2379
- 2380
- 2381
volumes:
- ./config.yaml:/etc/eco/eco.yaml
- ./data/eco-2:/var/lib
- /var/run/docker.sock:/var/run/docker.sock
privileged: true # required to inspect IP addresses