Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created April 17, 2019 21:16
Show Gist options
  • Save kwilczynski/3f64f930d4d31d213e1a5550812d6194 to your computer and use it in GitHub Desktop.
Save kwilczynski/3f64f930d4d31d213e1a5550812d6194 to your computer and use it in GitHub Desktop.
Docker Compose used to run Pi Hole (pi-hole) on RaspberryPi 3 as a Docker container.
version: '2'
services:
pihole:
container_name: 'pihole'
hostname: 'raspberry'
image: 'pihole/pihole:latest'
ports:
- '53:53/tcp'
- '53:53/udp'
- '67:67/udp'
- '80:80/tcp'
- '443:443/tcp'
environment:
IPv6: 'False'
ServerIP: '192.168.0.10'
TZ: 'Europe/Berlin'
DNS1: '1.1.1.1'
DNS2: '8.8.8.8'
volumes:
- 'pihole-etc:/etc/pihole'
- 'pihole-dnsmasq:/etc/dnsmasq.d'
- 'pihole-log:/var/log'
dns:
- '127.0.0.1'
- '1.1.1.1'
- '8.8.8.8'
cap_add:
- 'NET_ADMIN'
restart: 'unless-stopped'
volumes:
pihole-etc:
pihole-dnsmasq:
pihole-log:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment