-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
97 lines (92 loc) · 1.88 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
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
version: "3.9"
services:
ditm:
image: jonathanarns/ditm
container_name: ditm
hostname: ditm
environment:
CONTAINER_HOST_NAMES: etcd1,etcd2,etcd3
volumes:
- ./volumes/volumes:/volumes:z
- ./volumes/recordings:/recordings:Z
- ./volumes/snapshots:/snapshots:Z
ports:
- "8000:80"
- "5000:5000"
depends_on:
- etcd1
- etcd2
- etcd3
networks:
vpcbr:
ipv4_address: 10.5.0.10
etcd1:
image: op-etcd
container_name: etcd1
hostname: etcd1
volumes:
- ./volumes/volumes/etcd1:/data:Z
deploy:
restart_policy:
condition: on-failure
delay: 0s
ports:
- 8081:8080
environment:
- RUST_BACKTRACE=1
- HTTP_PROXY=ditm:5000
- PID=1
- PEERS=2,3
- PEER_DOMAINS=etcd2:8080,etcd3:8080
networks:
vpcbr:
ipv4_address: 10.5.0.2
etcd2:
image: op-etcd
container_name: etcd2
hostname: etcd2
volumes:
- ./volumes/volumes/etcd2:/data:Z
deploy:
restart_policy:
condition: on-failure
delay: 0s
ports:
- 8082:8080
environment:
- RUST_BACKTRACE=1
- HTTP_PROXY=ditm:5000
- PID=2
- PEERS=1,3
- PEER_DOMAINS=etcd1:8080,etcd3:8080
networks:
vpcbr:
ipv4_address: 10.5.0.3
etcd3:
image: op-etcd
container_name: etcd3
hostname: etcd3
volumes:
- ./volumes/volumes/etcd3:/data:Z
deploy:
restart_policy:
condition: on-failure
delay: 0s
ports:
- 8083:8080
environment:
- RUST_BACKTRACE=1
- HTTP_PROXY=ditm:5000
- PID=3
- PEERS=1,2
- PEER_DOMAINS=etcd1:8080,etcd2:8080
networks:
vpcbr:
ipv4_address: 10.5.0.4
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1