-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
32 lines (30 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '3.0'
services:
pihole:
container_name: pihole
image: ghcr.io/mariomare22/docker-pihole-unbound:latest
hostname: ${HOSTNAME}
domainname: ${DOMAIN_NAME}
ports:
- 53:53/tcp
- 53:53/udp
- ${PIHOLE_WEBPORT:-80}:80/tcp #Allows use of different port to access pihole web interface when other docker containers use port 80
environment:
- PUID=1000
- PGID=1000
- FTLCONF_LOCAL_IPV4=${FTLCONF_LOCAL_IPV4}
- TZ=${TZ}
- WEBPASSWORD=${WEBPASSWORD}
- REV_SERVER=${REV_SERVER:-false}
- REV_SERVER_TARGET=${REV_SERVER_TARGET}
- REV_SERVER_DOMAIN=${REV_SERVER_DOMAIN}
- REV_SERVER_CIDR=${REV_SERVER_CIDR}
- PIHOLE_DNS_=127.0.0.1#5335
- DNSSEC=${DNSSEC}
- DNSMASQ_LISTENING=single
volumes:
- /home/mario/config/pihole/etc_pihole-unbound:/etc/pihole:rw
# - /home/mario/config/pihole/etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
# - /home/mario/config/pihole/etc_unbound:/etc/unbound/unbound.conf.d/:rw
- /home/mario/config/pihole/hosts:/etc/hosts:rw
restart: unless-stopped