-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.71 KB
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
networks:
private_network:
ipam:
driver: default
config:
- subnet: 10.2.0.0/24
services:
unbound:
image: mvance/unbound:latest
container_name: unbound
restart: unless-stopped
hostname: unbound
volumes:
- ./unbound:/opt/unbound/etc/unbound/
networks:
private_network:
ipv4_address: 10.2.0.200
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
depends_on:
- unbound
hostname: pihole
ports:
- "80:80/tcp"
- "53:53/tcp"
- "53:53/udp"
volumes:
- ./etc-pihole/:/etc/pihole/
- ./etc-dnsmasq.d/:/etc/dnsmasq.d/
cap_add:
- NET_ADMIN
- SYS_NICE
networks:
private_network:
ipv4_address: 10.2.0.100
environment:
- TZ=${TZ}
- FTLCONF_webserver_api_password=${FTLCONF_webserver_api_password}
- FTLCONF_dns_upstreams=10.2.0.200#53 #unbound DNS
wg-easy:
image: weejewel/wg-easy
container_name: wg-easy
restart: unless-stopped
depends_on:
- pihole
ports:
- "51820:51820/udp"
- "51821:51821/tcp" # This is the new port for the Web UI
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
volumes:
- ./wireguard-easy-data:/etc/wireguard
networks:
private_network:
ipv4_address: 10.2.0.2 # Same IP as your old wireguard container
environment:
# This must be your server's public IP address
- WG_HOST=${SERVERURL}
# This is the password for the Web UI
- PASSWORD=${WGUI_PASSWORD}
# This should be your Pi-hole's IP address
- WG_DEFAULT_DNS=10.2.0.100