testdasi / pihole-with-doh Goto Github PK
View Code? Open in Web Editor NEWOfficial pihole docker with Cloudflared DoH client to enable DNS-over-HTTPS. Built for both Raspberry Pi and AMD64.
License: GNU General Public License v3.0
Official pihole docker with Cloudflared DoH client to enable DNS-over-HTTPS. Built for both Raspberry Pi and AMD64.
License: GNU General Public License v3.0
I'm running this container on a Raspi 4 without any problem, but if I try to run it on an x86_64 system, the container never
manages to start.
Here is the log:
Starting pihole-FTL (no-daemon) as root
Starting stubby
[13:24:22.483301] STUBBY: Read config from file /config/stubby.yml
Starting cloudflared
./run: line 7: /usr/local/bin/cloudflared: No such file or directory
Stopping stubby
Stopping pihole-FTL
Stopping cloudflared
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
cloudflared: no process found
Here is the docker-compose.yml
I am using to start the container:
version: "3"
services:
pihole-dot-doh:
container_name: pihole-dot-doh
image: testdasi/pihole-dot-doh:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "10443:443/tcp"
environment:
- TZ=Europe/Berlin
- WEBPASSWORD=<REMOVED>
- DNS1=127.1.1.1#5153
- DNS2=127.2.2.2#5253
- ServerIP=<REMOVED>
- ServerIPv6=
- IPv6=False
- DNSMASQ_LISTENING=all
volumes:
- '/docker/volumes/pihole-dot-doh/pihole/:/etc/pihole/'
- '/docker/volumes/pihole-dot-doh/dnsmasq.d/:/etc/dnsmasq.d/'
- '/docker/volumes/pihole-dot-doh/log/pihole.log:/var/log/pihole.log'
- '/docker/volumes/pihole-dot-doh/config/:/config'
cap_add:
- NET_ADMIN
restart: unless-stopped
I have this setup on a cloud instance*, but it doesn't work with cloudflared. I'm starting it like this:
docker run --rm -d \
--name pihole \
-p 53:53/tcp -p 53:53/udp \
-p 80:80 \
-e 'TZ'='Europe/London' \
-v "${PIHOLE_BASE}/etc-pihole:/etc/pihole" \
-v "${PIHOLE_BASE}/etc-dnsmasq.d:/etc/dnsmasq.d" \
--dns=127.0.0.1 --dns=1.1.1.1 \
--hostname pi.hole \
-e VIRTUAL_HOST="$(hostname)" \
-e PROXY_LOCATION="$(hostname)" \
-e FTLCONF_LOCAL_IPV4="$(hostname --ip-address)" \
-e 'DNS1'='127.1.1.1#5153' \
-e 'DNS2'='127.1.1.1#5153' \
'testdasi/pihole-with-doh:latest'
...but it only works once I remove the custom DNS servers (127.1.1.1#5153) and select one of the others without DoH.
* while it's on a public cloud instance, the firewall is only open to my home lan (static IP).
This is great Docker Container, you solved my problem of setting up DOH everytime
Only issue is, I run a RPi 2, can you add support to it, I'll help you if needed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.