-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (98 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
103 lines (98 loc) · 2.05 KB
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
98
99
100
101
102
103
version: '2.0'
services:
outboard-1:
build:
context: .
dockerfile: Dockerfiles/Dockerfile_outboard
# cap_add, security_opt, and volume required for the image to function
cap_add:
- net_admin
environment:
TZ: 'EST5EDT'
networks:
out-1:
ipv4_address: 172.16.106.254
read_only: true
tmpfs:
- /run
- /tmp
restart: unless-stopped
security_opt:
- label:disable
stdin_open: true
tty: true
volumes:
- /dev/net:/dev/net:z
- ./outboard-1:/vpn/config
outboard-2:
build:
context: .
dockerfile: Dockerfiles/Dockerfile_outboard
# cap_add, security_opt, and volume required for the image to function
cap_add:
- net_admin
environment:
TZ: 'EST5EDT'
networks:
out-2:
ipv4_address: 172.16.107.254
read_only: true
tmpfs:
- /run
- /tmp
restart: unless-stopped
security_opt:
- label:disable
stdin_open: true
tty: true
volumes:
- /dev/net:/dev/net:z
- ./outboard-2:/vpn/config
master:
build:
context: .
dockerfile: Dockerfiles/Dockerfile_master
# cap_add, security_opt, and volume required for the image to function
cap_add:
- net_admin
environment:
TZ: 'EST5EDT'
networks:
in:
ipv4_address: 172.16.105.3
out-1:
ipv4_address: 172.16.106.3
out-2:
ipv4_address: 172.16.107.3
#read_only: true
tmpfs:
- /run
- /tmp
restart: unless-stopped
security_opt:
- label:disable
stdin_open: true
tty: true
privileged: true
ports:
- "1194:1194/tcp"
# - "53:53/tcp"
# entrypoint: ["sh"]
volumes:
- /dev/net:/dev/net:z
- ./master:/vpn/config
- ./master/dnsmasq.d/:/etc/dnsmasq.d
networks:
in:
ipam:
config:
- subnet: 172.16.105.0/24
gateway: 172.16.105.1
out-1:
ipam:
config:
- subnet: 172.16.106.0/24
out-2:
ipam:
config:
- subnet: 172.16.107.0/24