-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
29 lines (28 loc) · 1.09 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
version: "3"
services:
pihole:
container_name: pihole
dns:
- 127.0.0.1
environment:
CONDITIONAL_FORWARDING: "true"
CONDITIONAL_FORWARDING_IP: "IP_OF_YOUR_ROUTER_OR_DEVICE_WHERE_YOU_CONFIGURED_THE_SEARCH_DOMAIN"
CONDITIONAL_FORWARDING_DOMAIN: "THE_SEARCH_DOMAIN_YOU_PUSH_VIA_DHCP"
DNS_BOGUS_PRIV: "true"
DNSMASQ_LISTENING: "local"
DNS1: "127.0.0.1#5053"
DNS2: "IP_OF_THE_HOST_RUNNING_DNSCRYPT_PROXY#5053"
ServerIP: "IP_OF_THE_HOST_RUNNING_PIHOLE"
TZ: 'Europe/Copenhagen'
WEB_PORT: "808"
# Change the vX.X number to the Pi-Hole version you want
image: pihole/pihole:2022.09.4
network_mode: "host"
restart: unless-stopped
# Volumes store your data between container upgrades
volumes:
# etc/pihole & etc/dnsmasq.d mapped to save data outside the container. To be able to e.g. upgrade without dataloss
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
# This volume mapping should only be necessary if on a QNAP or similar device
- "./resolv.conf:/etc/resolv.conf:ro"