diff --git a/pihole/docker-compose.yml b/pihole/docker-compose.yml index 8b34ecd..7b26920 100644 --- a/pihole/docker-compose.yml +++ b/pihole/docker-compose.yml @@ -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 \ No newline at end of file