services: ph-intercept: image: ghcr.io/m00grin/ph-intercept:latest hostname: ph-intercept container_name: ph-intercept restart: unless-stopped deploy: resources: limits: memory: 128m cpus: "1" pids: 20 environment: # REQUIRED: Pi-hole v6 API endpoint # Example: "http://192.168.1.2:80/api" PIHOLE_URL: "http://CHANGE.ME:PORT/api" # CLI users: Create a .env file in the same dir as this compose file with: # PIHOLE_PASSWORD=your_pihole_app_password # Portainer Web users: Add the environment variable: PIHOLE_PASSWORD=your_pihole_app_password PIHOLE_PASSWORD: ${PIHOLE_PASSWORD} # Optional: where ESC navigates to (like your homelab dashboard or homepage) # Accepts http://, https://, protocol-relative (//), relative paths, and custom app schemes # Leave blank ("") to disable ESC entirely RETURN_URL: "" # Background. These set the DEFAULT; each user can also switch the background live # from the in-app settings menu, and their choice is remembered per-browser. # Style: starfield | nebula | outrun | dark BG_MODE: starfield # Sky region shown for the starfield: # summer_triangle | orion | scorpius | southern_cross SKY_PRESET: summer_triangle # Optional custom background image: a URL, or /bg/your-filename.jpg (mounted volume). # When set, it becomes the default and enables the in-app "CUSTOM" option so it can be # picked any time. Leave blank to disable it (CUSTOM shows greyed out in the menu). BG_IMAGE: "" # SSL certificate verification. Set to "false" if Pi-hole uses HTTPS # with a self-signed certificate. Leave as "true" for HTTP or valid HTTPS. PIHOLE_VERIFY_SSL: "true" # Optional: comma-separated regex patterns. Matching domains spawn no ships. Case-insensitive. # PIHOLE_IGNORE_DOMAINS: .*\.local$,.*\.internal$ # 2-player local mode: set the URL (and password if the second Pi-hole has one) # to enable a second Pi-hole ship on the right half # PIHOLE2_URL: "http://192.168.1.3:8053/api" # PIHOLE2_PASSWORD: ${PIHOLE2_PASSWORD} # PIHOLE2_VERIFY_SSL: "true" volumes: # Portainer Web users: This will resolve to /data/compose//bg/ - ./bg:/app/static/bg # Persists 2-player mode state across container restarts - data:/app/data cap_drop: - ALL security_opt: - "no-new-privileges:true" read_only: true logging: driver: "json-file" options: max-size: "10m" max-file: "3" ports: # Host port : container port. Change the left side if 4653 is taken - "4653:4653" # Optional: point DNS at your Pi-hole (if used for DNS resolution) or resolver directly (like Unbound) # dns: # - your.dns.dockernet.ip # Optional: only needed if you use static IPs on a custom Docker network # Uncomment both networks blocks if you need this # networks: # intercept_net: # ipv4_address: this.container.dockernet.ip # networks: # intercept_net: # external: true volumes: data: