From 2edc5aad2bff4e83fc1e8b33e592624675d242eb Mon Sep 17 00:00:00 2001 From: Francesco Picone Date: Mon, 29 Dec 2025 11:19:48 +0100 Subject: [PATCH] Primo caricamento --- .env | 18 ++++++++++++++++++ docker-compose.yml | 25 +++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .env create mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..e11167a --- /dev/null +++ b/.env @@ -0,0 +1,18 @@ +# Cloudflare +CF_API_TOKEN=7A_5Xbd9z_69puTsxZymXHV4LVxbikSYV8IE9bb3 +CF_ZONE=pyconetwork.it +CF_SUBDOMAIN=home +CF_PROXIED=false +CF_TTL=120 + +# Frequenza controllo IP +CF_CRON=*/5 * * * * + +# Gotify +GOTIFY_URL=https://alert.qwince.com +GOTIFY_TOKEN=7A_5Xbd9z_69puTsxZymXHV4LVxbikSYV8IE9bb3 +GOTIFY_PRIORITY=5 + +# Configurazione Container +DATA_VOLUME=./data +RESTART_POLICY=unless-stopped \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8331338 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +version: "3.8" + +services: + cloudflare-ddns: + image: oznu/cloudflare-ddns:latest + container_name: cloudflare-ddns + restart: ${RESTART_POLICY} + env_file: + - .env + environment: + - API_KEY=${CF_API_TOKEN} + - ZONE=${CF_ZONE} + - SUBDOMAIN=${CF_SUBDOMAIN} + - PROXIED=${CF_PROXIED} + - TTL=${CF_TTL} + - CRON=${CF_CRON} + + # Gotify (notifica SOLO se IP cambia) + - GOTIFY_URL=${GOTIFY_URL} + - GOTIFY_TOKEN=${GOTIFY_TOKEN} + - GOTIFY_PRIORITY=${GOTIFY_PRIORITY} + - GOTIFY_ONLY_ON_CHANGE=true + + volumes: + - ${DATA_VOLUME}:/config