Primo caricamento
This commit is contained in:
18
.env
Normal file
18
.env
Normal 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
25
docker-compose.yml
Normal 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
|
||||||
Reference in New Issue
Block a user