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:
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
restart: unless-stopped
|
||||
hostname: pihole # Cleaner than the random container ID
|
||||
environment:
|
||||
TZ: America/New_York # Proper IANA format (was "New York")
|
||||
FTLCONF_webserver_api_password: "~Guards1345"
|
||||
FTLCONF_dns_listeningMode: ALL
|
||||
FTL_CMD: no-daemon
|
||||
DNSMASQ_USER: pihole
|
||||
- TZ=America/New_York # ← Change to your timezone
|
||||
- WEBPASSWORD=ChangeThisToAStrongPassword!
|
||||
volumes:
|
||||
- pihole_data:/etc/pihole
|
||||
- dnsmasq_data:/etc/dnsmasq.d
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "8080:80/tcp" # HTTP admin
|
||||
- "8443:443/tcp" # HTTPS admin
|
||||
volumes:
|
||||
- "/data/compose/5/etc-pihole:/etc/pihole:rw" # Keep this — confirmed by inspect
|
||||
# Add this second volume if you have custom dnsmasq configs (very common for Pi-hole)
|
||||
# - "/data/compose/5/etc-dnsmasq.d:/etc/dnsmasq.d:rw"
|
||||
networks:
|
||||
- pihole_default
|
||||
|
||||
- "80:80/tcp" # Pi-hole Web UI
|
||||
dns:
|
||||
- 127.0.0.1
|
||||
- 1.1.1.1
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
Reference in New Issue
Block a user