aboutsummaryrefslogtreecommitdiff
path: root/unsorted/docker_compose_stacks/pihole/docker-compose.yaml
blob: f258ef490a4b2340e3b68bfb6e0074d5938b889e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
services:
  pihole:
    image: pihole/pihole:2025.11.1
    ports:
      # DNS
      - "53:53/tcp"
      - "53:53/udp"
      # HTTP
      - "80:80/tcp"
      # HTTPS
      - "443:443/tcp"
      # DHCP
      - "67:67/udp"
      # NTP
      - "123:123/udp"
    environment:
      TZ: "Europe/London"
      FTLCONF_webserver_api_password: "CHANGEME"
      FTLCONF_dns_listeningMode: "ALL"
    volumes:
      - "./etc-pihole:/etc/pihole"
      - "./etc-dnsmasq.d:/etc/dnsmasq.d"
    cap_add:
      - NET_ADMIN
      - SYS_TIME
      - SYS_NICE
    restart: unless-stopped