-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·47 lines (44 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
executable file
·47 lines (44 loc) · 1.07 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
services:
openvpn:
container_name: openvpn
build: ./openvpn-docker
ports:
- "1194:1194/udp"
networks:
vpn-net:
ipv4_address: 172.20.0.3
volumes:
- ./openvpn/pki:/etc/openvpn/pki
- ./openvpn/clients:/etc/openvpn/clients
- ./openvpn/config:/etc/openvpn/config
cap_add:
- NET_ADMIN
restart: unless-stopped
devices:
- /dev/net/tun
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
pihole:
container_name: pihole
image: pihole/pihole:latest
depends_on:
- "openvpn"
networks:
vpn-net:
ipv4_address: 172.20.0.2
environment:
TZ: "Europe/Berlin"
FTLCONF_webserver_api_password: "password"
FTLCONF_dns_listeningMode: "all"
FTLCONF_dns_upstreams: "1.1.1.1;8.8.8.8" # Cloudflare and Google
volumes:
- './pihole/pihole:/etc/pihole'
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
vpn-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/16