Skip to content

Commit a1f7c03

Browse files
committed
Add Cloudflare DDNS service prepare for custom PiHole dnsmasq config.
1 parent f1dda72 commit a1f7c03

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

docker/docker-compose.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
services:
2+
cloudflare_ddns:
3+
image: favonia/cloudflare-ddns:latest # This is the official image, it supports ARM64
4+
container_name: cloudflare_ddns
5+
hostname: cloudflare_ddns
6+
restart: unless-stopped
7+
environment:
8+
# --- Cloudflare Credentials ---
9+
- CF_API_TOKEN=${CLOUDFLARE_API_TOKEN}
10+
11+
# --- Domains to Update ---
12+
- DOMAINS=${CF_DDNS_DOMAINS}
13+
14+
# --- Other Settings ---
15+
- PROXIED=${CF_DDNS_PROXIED}
16+
- IP4_PROVIDER=cloudflare.com
17+
- IP6_PROVIDER=none
18+
- UPDATE_CRON=@every 5m
19+
- TZ="America/New_York"
20+
221
pihole:
322
container_name: pihole
423
image: pihole/pihole:latest
@@ -23,7 +42,7 @@ services:
2342
FTLCONF_dhcp_ipv6: "true"
2443
volumes:
2544
- "./pihole:/etc/pihole"
26-
#- './etc-dnsmasq.d:/etc/dnsmasq.d'
45+
- "./pihole/dnsmasq.d:/etc/dnsmasq.d:ro"
2746
cap_add:
2847
- NET_ADMIN
2948
- SYS_TIME

0 commit comments

Comments
 (0)