This commit is contained in:
2026-03-22 17:06:32 +01:00
parent 6c5d3dc991
commit adfc713969

View File

@@ -4,32 +4,20 @@ services:
container_name: pihole container_name: pihole
hostname: pihole hostname: pihole
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env - .env
ports: ports:
- "53:53/tcp" - "53:53/tcp"
- "53:53/udp" - "53:53/udp"
- "8080:80" - "8080:80"
environment: environment:
TZ: ${TZ} TZ: ${TZ}
WEBPASSWORD: ${WEBPASSWORD} WEBPASSWORD: ${WEBPASSWORD}
PIHOLE_DNS_: ${PIHOLE_DNS_} PIHOLE_DNS_: ${PIHOLE_DNS_}
DNSMASQ_LISTENING: all DNSMASQ_LISTENING: all
FTLCONF_dns_listeningMode: all
volumes: volumes:
- etc-pihole:/etc/pihole - ./etc-pihole:/etc/pihole
- /etc/dnsmasq.d/address.d:/etc/dnsmasq.d - /etc/dnsmasq.d:/etc/dnsmasq.d
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
# viktig hvis du senere kombinerer med WireGuard
dns:
- 127.0.0.1
- 1.1.1.1
volumes:
etc-pihole: