Skip to main content

Pihole

Pihole on Synology NAS

services:
  pihole:
    image: pihole/pihole:latest
    container_name: pihole
    environment:
      - PIHOLE_UID=1026 #CHANGE_TO_YOUR_UID# NEED TO UPDATE THIS TO WORK CORRECTLY (id in terminal)
      - PIHOLE_GID=100 #CHANGE_TO_YOUR_GID# EED TO UPDATE THIS TO WORK CORRECTLY (id in terminal)
      - TZ=America/New_York #CHANGE_TO_YOUR_TZ
      - WEBPASSWORD=123 # Change the password for web ui
      # - WEB_PORT=8000 # Optional port change, default is 80
    volumes:
      - /volume1/Apex/docker_volumes/pihole/dnsmasq.d:/etc/dnsmasq.d
      - /volume1/Apex/docker_volumes/pihole/data:/etc/pihole
    restart: unless-stopped
    networks:
      nomad:
        ipv4_address: 192.168.1.241
    hostname: apex-hole
networks:
  nomad:
    external: true