-
-
Save hyjk2000/ee4aeb8a3be0b1a744cae5af5609af5b to your computer and use it in GitHub Desktop.
Pi-hole ✖️ cloudflared
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
TZ= | |
INTERFACE= | |
FTLCONF_LOCAL_ADDR4= | |
FTLCONF_LOCAL_ADDR6= | |
WEBPASSWORD= |
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.8' | |
services: | |
cloudflared: | |
image: ghcr.io/hyjk2000/cloudflared:latest | |
command: proxy-dns | |
network_mode: host | |
environment: | |
TUNNEL_DNS_PORT: 5054 | |
TUNNEL_DNS_MAX_UPSTREAM_CONNS: 0 | |
restart: unless-stopped | |
pihole: | |
image: pihole/pihole:latest | |
network_mode: host | |
environment: | |
TZ: ${TZ:-UTC} | |
INTERFACE: ${INTERFACE:?INTERFACE not set} | |
FTLCONF_LOCAL_IPV4: ${FTLCONF_LOCAL_IPV4:?FTLCONF_LOCAL_IPV4 not set} | |
FTLCONF_LOCAL_IPV6: ${FTLCONF_LOCAL_IPV6:?FTLCONF_LOCAL_IPV6 not set} | |
VIRTUAL_HOST: ${VIRTUAL_HOST:-pi.hole} | |
WEB_BIND_ADDR: ${WEB_BIND_ADDR:-0.0.0.0} | |
WEB_PORT: ${WEB_PORT:-7780} | |
WEBPASSWORD: ${WEBPASSWORD:?WEBPASSWORD not set} | |
PIHOLE_DNS_: 127.0.0.1#5054 | |
DNSSEC: 'true' | |
DHCP_ACTIVE: ${DHCP_ACTIVE:-false} | |
env_file: | |
- .env | |
volumes: | |
- './etc-pihole:/etc/pihole' | |
- './etc-dnsmasq.d:/etc/dnsmasq.d' | |
- './etc-lighttpd/external.conf:/etc/lighttpd/external.conf' | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment