-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
49 lines (48 loc) · 1.27 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
version: '3'
services:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
env_file:
- $PWD/wireguard.env
volumes:
- /root/wireguard/config:/config
- /lib/modules:/lib/modules
- /usr/src:/usr/src
ports:
- 51820:51820/udp
dns:
- 172.20.0.7
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
networks:
containers:
ipv4_address: 172.20.0.5
pihole:
container_name: pihole
image: pihole/pihole:latest
expose:
- 53
- 67
- 80
- 443
env_file:
- $PWD/pihole.env
volumes:
- $PWD/etc-pihole/:/etc/pihole/
- $PWD/etc-dnsmasq.d/:/etc/dnsmasq.d/
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
containers:
ipv4_address: 172.20.0.7
networks:
containers:
ipam:
config:
- subnet: 172.20.0.0/24