-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.29 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
version: "3"
networks:
private_network:
driver: bridge
ipam:
config:
- subnet: 10.10.0.0/24
services:
wireguard:
image: linuxserver/wireguard:latest
container_name: wireguard
hostname: wireguard
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- PEERS=1
- PEERDNS=10.10.0.10
- INTERNAL_SUBNET=10.6.0.0
volumes:
- ./wireguard/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
networks:
private_network:
ipv4_address: 10.10.0.30
depends_on:
- adguard
adguard:
image: adguard/adguardhome
container_name: adguard
hostname: adguard
restart: unless-stopped
volumes:
- ./adguard/opt-adguard-work:/opt/adguardhome/work
- ./adguard/opt-adguard-conf:/opt/adguardhome/conf
- ./adguard/log:/opt/adguardhome/log
networks:
private_network:
ipv4_address: 10.10.0.10