Skip to content

Instantly share code, notes, and snippets.

@PreetSangha
Created September 26, 2022 09:46
Show Gist options
  • Save PreetSangha/8cc674dea4a9494df1b2129ffc9c04f7 to your computer and use it in GitHub Desktop.
Save PreetSangha/8cc674dea4a9494df1b2129ffc9c04f7 to your computer and use it in GitHub Desktop.
simple pihole docker compose
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# network_mode: host
networks:
- pihole
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Pacific/Auckland' #this is the time zone
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
pihole:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment