Skip to content

Instantly share code, notes, and snippets.

@kryachkov
Created February 27, 2023 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kryachkov/80a41947b95d0969b9be4128147965fc to your computer and use it in GitHub Desktop.
Save kryachkov/80a41947b95d0969b9be4128147965fc to your computer and use it in GitHub Desktop.
---
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
cloudflared:
container_name: cloudflared
image: cloudflare/cloudflared:2023.2.1
command: "proxy-dns --address 0.0.0.0 --port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query"
pihole:
container_name: pihole
image: pihole/pihole:2023.02.2
ports:
- "53:53/tcp"
- "53:53/udp"
- "8080:80/tcp"
environment:
TZ: 'UTC'
PIHOLE_DNS_: 'cloudflared#5053'
DNSSEC: 'true'
WEBPASSWORD: 'passw0rd'
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment