2020-12-31 21:23:33 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
|
|
|
image: cbcrowe/pihole-unbound:latest
|
|
|
|
hostname: pihole
|
|
|
|
domainname: pihole.local
|
|
|
|
ports:
|
2021-02-09 08:46:32 +01:00
|
|
|
- 443/tcp
|
2020-12-31 21:23:33 +01:00
|
|
|
- 53/tcp
|
|
|
|
- 53/udp
|
2021-02-09 08:46:32 +01:00
|
|
|
- 80/tcp
|
2020-12-31 21:23:33 +01:00
|
|
|
# - 22/tcp # Uncomment to enable SSH
|
|
|
|
environment:
|
|
|
|
ServerIP: ${ServerIP}
|
|
|
|
TZ: ${TZ}
|
|
|
|
WEBPASSWORD: ${WEBPASSWORD}
|
|
|
|
REV_SERVER: ${REV_SERVER}
|
|
|
|
REV_SERVER_TARGET: ${REV_SERVER_TARGET}
|
|
|
|
REV_SERVER_DOMAIN: ${REV_SERVER_DOMAIN}
|
|
|
|
REV_SERVER_CIDR: ${REV_SERVER_CIDR}
|
|
|
|
DNS1: 127.0.0.1#5335 # Hardcoded to our Unbound server
|
|
|
|
DNS2: 127.0.0.1#5335 # Hardcoded to our Unbound server
|
|
|
|
DNSSEC: "true" # Enable DNSSEC
|
|
|
|
network_mode: "host"
|
|
|
|
volumes:
|
|
|
|
- etc_pihole-unbound:/etc/pihole:rw
|
|
|
|
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
|
|
|
|
restart: unless-stopped
|
|
|
|
|