-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
36 lines (34 loc) · 1 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
33
34
35
36
version: '3.0'
volumes:
etc_pihole:
etc_dnsmasq:
etc_unbound:
services:
pihole:
container_name: pihole-unbound
image: pluim003/pihole-unbound:latest
hostname: ${HOSTNAME}
domainname: ${DOMAIN_NAME}
ports:
- ${WEB_PORT}:80/tcp
- 53:53/tcp
- 53:53/udp
# - 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}
WEBPASSWORD: ${WEBPASSWORD}
REV_SERVER: ${REV_SERVER}
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 # Hardcoded to our Unbound server
DNSSEC: "true" # Enable DNSSEC
DNSMASQ_LISTENING: single
volumes:
- etc_pihole:/etc/pihole:rw
- etc_dnsmasq:/etc/dnsmasq.d:rw
- etc_unbound:/etc/unbound:rw
# - ./resolv.conf:/etc/resolv.conf
restart: unless-stopped