Skip to content

Instantly share code, notes, and snippets.

@karakanb
Last active November 2, 2020 00:04
Show Gist options
  • Save karakanb/aeb672b534ea2d948cde9dfda23dc799 to your computer and use it in GitHub Desktop.
Save karakanb/aeb672b534ea2d948cde9dfda23dc799 to your computer and use it in GitHub Desktop.
simple pi-hole docker-compose setup
version: "3.8"
services:
pihole:
container_name: pihole
image: pihole/pihole:v5.1.2
restart: always
environment:
TZ: 'Europe/Berlin' # Put your own timezone here.
WEBPASSWORD: 'replacethispasswordplease' # Put a strong password here.
# We'll use host networking simply because it is way easier to setup.
network_mode: host
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
# Required for the DHCP server
cap_add:
- NET_ADMIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment