Added ddns-updater

This commit is contained in:
Lockszmith (@kateryna) 2024-11-24 23:54:09 -05:00
parent 385b0e66a6
commit 3d497c3f66
4 changed files with 56 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.env.local .env.local
_copy_to_traefik/tls _copy_to_traefik/tls
**/app.env **/app.env
ddns-updater/config.json

View File

@ -0,0 +1,14 @@
{
"settings": [
{
"provider": "cloudflare",
"zone_identifier": "grab from zone overview page",
"domain": "fqdn of dynamic hostname",
"proxied": false,
"ttl": 600,
"token": "cloudflare DNS token",
"ip_version": "ipv4",
"ipv6_suffix": ""
}
]
}

View File

@ -0,0 +1,39 @@
services:
ddns-updater:
environment:
USER_UID: "${SZ_USER_UID}"
USER_GID: "${SZ_USER_GID}"
# user: "${SZ_USER_UID}"
# environment:
# - CONFIG=
# - PERIOD=5m
# - UPDATE_COOLDOWN_PERIOD=5m
# - PUBLICIP_FETCHERS=all
# - PUBLICIP_HTTP_PROVIDERS=all
# - PUBLICIPV4_HTTP_PROVIDERS=all
# - PUBLICIPV6_HTTP_PROVIDERS=all
# - PUBLICIP_DNS_PROVIDERS=all
# - PUBLICIP_DNS_TIMEOUT=3s
# - HTTP_TIMEOUT=10s
# # Web UI
# - LISTENING_ADDRESS=:8000
# - ROOT_URL=/
# # Backup
# - BACKUP_PERIOD=0 # 0 to disable
# - BACKUP_DIRECTORY=/updater/data
# # Other
# - LOG_LEVEL=info
# - LOG_CALLER=hidden
# - SHOUTRRR_ADDRESSES=
# restart: always
volumes:
#- dummy:/updater/data:ro
- type: bind
source: ${ROOT_FOLDER_HOST}/user-config/${APP_ID}/config.json
target: /updater/data/config.json
read_only: true

View File

@ -0,0 +1,2 @@
SZ_USER_UID=<UID>
SZ_USER_GID=<GID>