forked from wg-easy/wg-easy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.21 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.8"
services:
wg-easy:
image: weejewel/wg-easy
container_name: wg-easy
restart: unless-stopped
hostname: wg-easy
environment:
- WG_HOST: ${WG_HOST:-}
- PASSWORD: ${PASSWORD:-}
networks:
- wg-easy
volumes:
- ~/.wg-easy:/etc/wireguard
ports:
- "51820:51820/udp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
pihole:
image: pihole/pihole
container_name: pihole
environment:
- WEBPASSWORD: ${WEBPASSWORD:-}
networks:
- wg-easy
volumes:
- '~/.pihole/etc-pihole:/etc/pihole'
- './.pihole/etc-dnsmasq.d:/etc/dnsmasq.d'
ports:
- "53:53/tcp"
- "53:53/udp"
- "5353:80/tcp"
restart: unless-stopped
caddy:
image: caddy:alpine
container_name: caddy
restart: unless-stopped
networks:
- wg-easy
ports:
- 80:80
- 443:443
environment:
- WG_HOST: ${WG_HOST:-}
- PIHOLE_HOST: ${PIHOLE_HOST:-}
volumes:
- caddy_data:/data
- caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
wg-easy:
volumes:
caddy_data:
caddy_config: