-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
92 lines (90 loc) · 2.15 KB
/
docker-compose.yaml
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
version: "3.9"
services:
comdb2-node1:
container_name: node1
hostname: node1
image: heisengarg/comdb2-dev:latest
working_dir: /home/heisengarg
privileged: true
command: ["run", "mogargdb"]
volumes:
- ./volumes/bin:/opt/bb/bin
- ./volumes/node1-dbs:/home/heisengarg/dbs
- ./volumes/node1-ssh:/home/heisengarg/.ssh
networks:
- cluster-net
- client-net
restart: unless-stopped
cap_add:
- ALL
comdb2-node2:
container_name: node2
hostname: node2
image: heisengarg/comdb2-dev:latest
working_dir: /home/heisengarg
privileged: true
command: ["run", "mogargdb"]
volumes:
- ./volumes/bin:/opt/bb/bin
- ./volumes/node2-dbs:/home/heisengarg/dbs
- ./volumes/node2-ssh:/home/heisengarg/.ssh
networks:
- cluster-net
- client-net
restart: unless-stopped
cap_add:
- ALL
comdb2-node3:
container_name: node3
hostname: node3
image: heisengarg/comdb2-dev:latest
working_dir: /home/heisengarg
privileged: true
command: ["run", "mogargdb"]
volumes:
- ./volumes/bin:/opt/bb/bin
- ./volumes/node3-dbs:/home/heisengarg/dbs
- ./volumes/node3-ssh:/home/heisengarg/.ssh
networks:
- cluster-net
- client-net
restart: unless-stopped
cap_add:
- ALL
comdb2-client:
container_name: client
hostname: client
image: heisengarg/comdb2-dev:latest
working_dir: /home/heisengarg/src
privileged: true
command: ["diskeys", "node1,node2,node3"]
environment:
- CLUSTER="node1 node2 node3"
volumes:
- comdb2-src:/home/heisengarg/src
- ./volumes/bin:/opt/bb/bin
- ./volumes/client-ssh:/home/heisengarg/.ssh
networks:
- client-net
cap_add:
- ALL
volumes:
comdb2-src:
external: true
networks:
cluster-net:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
- subnet: 2001:3984:3989::/64
client-net:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 173.16.239.0/24
- subnet: 2001:3984:3990::/64