Primo caricamento

This commit is contained in:
Francesco Picone
2025-12-29 11:19:48 +01:00
commit 2edc5aad2b
2 changed files with 43 additions and 0 deletions

18
.env Normal file
View File

@@ -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

25
docker-compose.yml Normal file
View File

@@ -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