Created
November 21, 2019 10:27
-
-
Save asta-kun/1f430ccb78b2736648d9a9ad6bec468b to your computer and use it in GitHub Desktop.
Setup pi-hole DNS to 127.0.0.1
This file contains 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" | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
ports: | |
- "127.0.0.1:53:53/tcp" | |
- "127.0.0.1:53:53/udp" | |
- "127.0.0.1:80:80/tcp" | |
- "127.0.0.1:443:443/tcp" | |
environment: | |
TZ: 'America/Chicago' | |
DNS1: 1.1.1.1 | |
DNS2: 1.0.0.1 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment