Refactor DDNS to support Google domains (via ddclient)

This commit is contained in:
Joey Hafner 2022-07-16 00:18:54 -07:00
parent 2b5995ecf1
commit 667f3df7b4
3 changed files with 41 additions and 21 deletions

View File

@ -1,21 +0,0 @@
version: "3"
services:
cloudflare-ddns:
image: oznu/cloudflare-ddns
container_name: ddns_cloudflare-ddns
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
restart: "no"
environment:
- API_KEY=9DFsEwqVGRvcvKcpU7v5tORYIj-BmTJ-7zHonskl
- ZONE=jafner.net
- SUBDOMAIN=*
labels:
- traefik.enable=false

1
server/config/ddns/.env Normal file
View File

@ -0,0 +1 @@
DOCKER_DATA=/home/joey/data/ddns

View File

@ -0,0 +1,40 @@
version: "3"
services:
cloudflare:
image: oznu/cloudflare-ddns
container_name: ddns_cloudflare
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
restart: "no"
environment:
- API_KEY=9DFsEwqVGRvcvKcpU7v5tORYIj-BmTJ-7zHonskl
- ZONE=jafner.net
- SUBDOMAIN=*
labels:
- traefik.enable=false
ddclient:
image: linuxserver/ddclient
container_name: ddns_ddclient
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
restart: "no"
environment:
- PUID=1000
- PGID=1000
- TZ=America/Los_Angeles
volumes:
- ${DOCKER_DATA}/ddclient:/config
labels:
- traefik.enable=false