Last active
November 2, 2020 00:04
-
-
Save karakanb/aeb672b534ea2d948cde9dfda23dc799 to your computer and use it in GitHub Desktop.
simple pi-hole docker-compose setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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