Skip to content

Instantly share code, notes, and snippets.

@sjmuniz
Created August 16, 2019 02:43
Show Gist options
  • Save sjmuniz/1a6065e0d82b7fc8e45f16bde8817730 to your computer and use it in GitHub Desktop.
Save sjmuniz/1a6065e0d82b7fc8e45f16bde8817730 to your computer and use it in GitHub Desktop.
pi-hole ServerIP set.
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
network_mode: host
# ports:
# - "53:53/tcp"
# - "53:53/udp"
# - "67:67/udp"
# - "80:80/tcp"
# - "443:443/tcp"
environment:
TZ: 'America/Argentina/Buenos_Aires'
WEBPASSWORD: 'something'
DNS1: '200.42.4.198'
DNS2: '200.49.130.52'
ServerIP: '192.168.99.210'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 200.42.4.198
- 200.49.130.52
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment