-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 961 Bytes
/
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
version: '3'
services:
container1:
image: archlinux
privileged: true
command: sleep infinity
volumes:
- ./wag:/usr/local/bin/wag
networks:
custom_network:
ipv4_address: 172.20.0.2
cap_add:
- NET_ADMIN
container2:
image: archlinux
privileged: true
command: sleep infinity
ports:
- "4433:4433/tcp"
volumes:
- ./wag:/usr/local/bin/wag:ro
- ./docker-test-config.json:/opt/config.json
- ./devices.db:/opt/devices.db
networks:
custom_network:
ipv4_address: 172.20.0.3
cap_add:
- NET_ADMIN
container3:
image: archlinux
privileged: true
volumes:
- ./wag:/usr/local/bin/wag
command: sleep infinity
networks:
custom_network:
ipv4_address: 172.20.0.4
cap_add:
- NET_ADMIN
networks:
custom_network:
ipam:
config:
- subnet: 172.20.0.0/24
gateway: 172.20.0.1