Clean pihole stack for Portainer deployment - removed external network
This commit is contained in:
+15
-17
@@ -1,26 +1,24 @@
|
|||||||
version: "3.8" # Modern version (original was 3.6, safe to bump)
|
volumes:
|
||||||
|
pihole_data:
|
||||||
|
dnsmasq_data:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pihole:
|
pihole:
|
||||||
container_name: pihole
|
|
||||||
image: pihole/pihole:latest
|
image: pihole/pihole:latest
|
||||||
|
container_name: pihole
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
hostname: pihole # Cleaner than the random container ID
|
|
||||||
environment:
|
environment:
|
||||||
TZ: America/New_York # Proper IANA format (was "New York")
|
- TZ=America/New_York # ← Change to your timezone
|
||||||
FTLCONF_webserver_api_password: "~Guards1345"
|
- WEBPASSWORD=ChangeThisToAStrongPassword!
|
||||||
FTLCONF_dns_listeningMode: ALL
|
volumes:
|
||||||
FTL_CMD: no-daemon
|
- pihole_data:/etc/pihole
|
||||||
DNSMASQ_USER: pihole
|
- dnsmasq_data:/etc/dnsmasq.d
|
||||||
ports:
|
ports:
|
||||||
- "53:53/tcp"
|
- "53:53/tcp"
|
||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
- "8080:80/tcp" # HTTP admin
|
- "80:80/tcp" # Pi-hole Web UI
|
||||||
- "8443:443/tcp" # HTTPS admin
|
dns:
|
||||||
volumes:
|
- 127.0.0.1
|
||||||
- "/data/compose/5/etc-pihole:/etc/pihole:rw" # Keep this — confirmed by inspect
|
- 1.1.1.1
|
||||||
# Add this second volume if you have custom dnsmasq configs (very common for Pi-hole)
|
cap_add:
|
||||||
# - "/data/compose/5/etc-dnsmasq.d:/etc/dnsmasq.d:rw"
|
- NET_ADMIN
|
||||||
networks:
|
|
||||||
- pihole_default
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user