diff --git a/.gitignore b/.gitignore index 9211050..9e6ac1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env.local _copy_to_traefik/tls **/app.env +ddns-updater/config.json diff --git a/ddns-updater/config.json.local b/ddns-updater/config.json.local new file mode 100644 index 0000000..142ffb5 --- /dev/null +++ b/ddns-updater/config.json.local @@ -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": "" + } + ] + } diff --git a/ddns-updater/docker-compose.yml b/ddns-updater/docker-compose.yml new file mode 100644 index 0000000..9d0218d --- /dev/null +++ b/ddns-updater/docker-compose.yml @@ -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 diff --git a/ddns-updater/local.app.env b/ddns-updater/local.app.env new file mode 100644 index 0000000..9b24410 --- /dev/null +++ b/ddns-updater/local.app.env @@ -0,0 +1,2 @@ +SZ_USER_UID= +SZ_USER_GID=