-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
61 lines (56 loc) · 1.08 KB
/
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
services:
client:
hostname: client
build: .
init: true
networks:
- inside
server:
hostname: server
build: .
init: true
networks:
outside:
ipv4_address: 10.12.0.10
gw1:
hostname: gw1
build: .
init: true
volumes:
- ./keepalived/gw1.conf:/etc/keepalived/keepalived.conf:ro
- ./haproxy.cnf:/etc/haproxy.cnf
networks:
- inside
- outside
expose:
- 2222
cap_add:
- NET_ADMIN
- NET_BROADCAST
gw2:
hostname: gw2
build: .
init: true
volumes:
- ./keepalived/gw2.conf:/etc/keepalived/keepalived.conf:ro
networks:
- inside
- outside
expose:
- 2222
cap_add:
- NET_ADMIN
- NET_BROADCAST
networks:
outside:
driver: bridge
ipam:
config:
- subnet: 10.12.0.0/16
inside:
driver: bridge
enable_ipv6: true
# Can't disable IPv4 ...yet https://github.com/moby/moby/issues/32850
ipam:
config:
- subnet: fe80::/64