forked from fnazz/docker-adguard-unbound-wireguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 loc) · 1.65 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3"
networks:
private_network:
ipam:
driver: default
config:
- subnet: 10.2.0.0/24
services:
unbound:
image: "mvance/unbound:1.21.1"
container_name: unbound
restart: unless-stopped
hostname: "unbound"
volumes:
- "./unbound:/opt/unbound/etc/unbound/"
networks:
private_network:
ipv4_address: 10.2.0.200
wireguard:
depends_on: [unbound, adguard]
image: linuxserver/wireguard:latest
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Kolkata # Change to your timezone
- SERVERPORT=51820
#- SERVERURL=my.ddns.net #optional - For use with DDNS (Uncomment to use)
- PEERS=2 # How many peers to generate for you (clients)
- PEERDNS=10.2.0.100 # Set it to point to adguard home
- INTERNAL_SUBNET=10.6.0.0
#- ALLOWEDIPS=10.2.0.0/24 # optional - split tunnel for web panel and DNS traffic only
volumes:
- ./wireguard:/config
- /lib/modules:/lib/modules
ports:
- "51820:51820/udp"
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
networks:
private_network:
ipv4_address: 10.2.0.3
adguard:
depends_on: [unbound]
container_name: adguard
image: adguard/adguardhome:v0.107.54
restart: unless-stopped
hostname: adguard
# Volumes store your data between container upgrades
volumes:
- "./adguard/opt-adguard-work:/opt/adguardhome/work"
- "./adguard/opt-adguard-conf:/opt/adguardhome/conf"
networks:
private_network:
ipv4_address: 10.2.0.100