Last active
December 4, 2020 16:38
-
-
Save lAnubisl/27e12f0fed893c048a141028a762876a to your computer and use it in GitHub Desktop.
docker-compose pihole+cloudflared for raspberry pi 3B
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.5" | |
# Manually create a network so we can use static IPs on the backend | |
networks: | |
pihole_net: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 10.0.0.0/24 | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:v5.2.1-armhf-buster | |
ports: | |
- "53:53/tcp" | |
- "53:53/udp" | |
- "67:67/udp" | |
- "8017:80/tcp" | |
- "8018:443/tcp" | |
environment: | |
- "ServerIP=10.0.0.3" | |
- "DNS1='10.0.0.2#5054'" | |
- "DNS2=''" | |
- "IPv6=false" | |
- "TZ='Europe/Minsk'" | |
- "DNSMASQ_LISTENING=all" | |
- "WEBPASSWORD=###########################" | |
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 | |
networks: | |
pihole_net: | |
ipv4_address: 10.0.0.3 | |
depends_on: | |
- cloudflared | |
cloudflared: | |
container_name: cloudflared | |
image: visibilityspots/cloudflared:arm | |
ports: | |
- "5054:5054/tcp" | |
- "5054:5054/udp" | |
environment: | |
TZ: 'Europe/Minsk' | |
restart: unless-stopped | |
networks: | |
pihole_net: | |
ipv4_address: 10.0.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment