-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathcompose.yaml
36 lines (35 loc) · 1.33 KB
/
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
33
34
35
36
---
services:
pihole-unbound:
container_name: pihole-unbound
image: mpgirro/pihole-unbound:latest
hostname: ${HOSTNAME}
domainname: ${DOMAIN_NAME}
ports:
- 443:443/tcp
- 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
# - 5335:5335/tcp # Uncomment to enable unbound access on local server
# - 22/tcp # Uncomment to enable SSH
environment:
- FTLCONF_LOCAL_IPV4=${FTLCONF_LOCAL_IPV4}
- TZ=${TZ:-UTC}
- FTLCONF_webserver_api_password=${WEBPASSWORD}
- FTLCONF_webserver_interface_theme=${WEBTHEME:-default-light}
#- REV_SERVER=${REV_SERVER:-false}
#- REV_SERVER_TARGET=${REV_SERVER_TARGET}
#- REV_SERVER_DOMAIN=${REV_SERVER_DOMAIN}
#- REV_SERVER_CIDR=${REV_SERVER_CIDR}
- FTLCONF_dns_revServers=${REV_SERVER:-false},${REV_SERVER_CIDR},${REV_SERVER_TARGET},${REV_SERVER_DOMAIN}
- FTLCONF_dns_upstreams=127.0.0.1#5335
- FTLCONF_dns_dnssec="true"
- FTLCONF_dns_listeningMode=single
- FTLCONF_webserver_port=${WEB_PORT}
volumes:
- etc_pihole-unbound:/etc/pihole:rw
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
restart: unless-stopped
volumes:
etc_pihole-unbound:
etc_pihole_dnsmasq-unbound: