Skip to main content

Pihole

---
version: '3.3'
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - 53:53/tcp #DNS Port
      - 53:53/udp #DNS Port
      #- 67:67/udp #DHCP Port
      - 83:80/tcp #Dashboard Port
      #- 443:443/tcp #Port 443 is to provide a sinkhole for ads that use SSL.
    environment:
      TZ: Europe/Paris
      WEBPASSWORD: 01664892ganjah12
      DNS1: 1.1.1.1
      DNS2: 1.0.0.1
      DNSSEC: 'true'
    volumes:
      - /srv/dev-disk-by-uuid-aeb64686-5ba2-4319-a690-3215ec812b5d/Files/Pihole/etc-pihole/:/etc/pihole/
      - /srv/dev-disk-by-uuid-aeb64686-5ba2-4319-a690-3215ec812b5d/Files/Pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
    cap_add:
      - NET_ADMIN
    restart: unless-stopped