-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.multiple.yml
85 lines (81 loc) · 2.16 KB
/
docker-compose.multiple.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
version: "2"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
environment:
TZ: "${TZ}"
WEBPASSWORD: "${DNS_WEB_PASS}"
DNSMASQ_LISTENING: all
volumes:
- ./data/pihole:/etc/pihole
- ./data/dnsmasq.d:/etc/dnsmasq.d
networks:
net_1:
ipv4_address: 172.23.147.2
ipv6_address: fc00:a056:4629:ada0::2
net_2:
ipv4_address: 172.23.147.10
ipv6_address: fc00:a056:4629:ada0::a
wireguard_1:
container_name: wireguard_1
image: weejewel/wg-easy
restart: unless-stopped
environment:
PASSWORD: "${WG_WEB_PASS}"
WG_HOST: "${WG_HOST}"
WG_PORT: "${WG_PORT_1}"
WG_DEFAULT_ADDRESS: 10.13.37.x
WG_DEFAULT_DNS: 172.23.147.2, fc00:a056:4629:ada0::2
volumes:
- ./data/wireguard_1:/etc/wireguard
ports:
- "${WG_PORT_1}:51820/udp"
cap_add: [NET_ADMIN, SYS_MODULE]
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
networks:
net_1:
ipv4_address: 172.23.147.3
ipv6_address: fc00:a056:4629:ada0::3
wireguard_2:
container_name: wireguard_2
image: weejewel/wg-easy
restart: unless-stopped
environment:
PASSWORD: "${WG_WEB_PASS}"
WG_HOST: "${WG_HOST}"
WG_PORT: "${WG_PORT_2}"
WG_DEFAULT_ADDRESS: 10.14.88.x
WG_DEFAULT_DNS: 172.23.147.10, fc00:a056:4629:ada0::a
volumes:
- ./data/wireguard_2:/etc/wireguard
ports:
- "${WG_PORT_2}:51820/udp"
cap_add: [NET_ADMIN, SYS_MODULE]
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
networks:
net_2:
ipv4_address: 172.23.147.11
ipv6_address: fc00:a056:4629:ada0::b
networks:
net_1:
enable_ipv6: true
ipam:
config:
- subnet: 172.23.147.0/29
gateway: 172.23.147.1
- subnet: fc00:a056:4629:ada0::0/125
gateway: fc00:a056:4629:ada0::1
net_2:
enable_ipv6: true
ipam:
config:
- subnet: 172.23.147.8/29
gateway: 172.23.147.9
- subnet: fc00:a056:4629:ada0::8/125
gateway: fc00:a056:4629:ada0::9