feat(cloudflare-ddns): add cloudflare-ddns stack
This commit is contained in:
6
compose/cloudflare-ddns/.env.example
Normal file
6
compose/cloudflare-ddns/.env.example
Normal file
@@ -0,0 +1,6 @@
|
||||
UID="1000"
|
||||
GID="1000"
|
||||
CLOUDFLARE_API_TOKEN="CLOUDFLARE_API_KEY_HERE"
|
||||
DOMAINS="domain1.com,domain2.net" # Comma saperated domains to update the IP
|
||||
PROXIED="false" # Enables Cloudflare proxying
|
||||
IP6_PROVIDER="none"
|
||||
15
compose/cloudflare-ddns/docker-compose.yml
Normal file
15
compose/cloudflare-ddns/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
cloudflare-ddns:
|
||||
image: favonia/cloudflare-ddns:latest
|
||||
container_name: cloudflare-ddns
|
||||
network_mode: host # This bypasses network isolation and makes IPv6 easier (optional; see below)
|
||||
restart: unless-stopped
|
||||
user: "${UID:-1000}:${GID:-1000}" # Run the updater with specific user and group IDs (in that order).
|
||||
read_only: true # Make the container filesystem read-only (optional but recommended)
|
||||
cap_drop: [all] # Drop all Linux capabilities (optional but recommended)
|
||||
security_opt: [no-new-privileges:true] # Another protection to restrict superuser privileges (optional but recommended)
|
||||
environment:
|
||||
CLOUDFLARE_API_TOKEN: "${CLOUDFLARE_API_TOKEN:?}"
|
||||
DOMAINS: "${DOMAINS:?}"
|
||||
PROXIED: "${PROXIED:-false}"
|
||||
IP6_PROVIDER: "${IP6_PROVIDER:-none}"
|
||||
Reference in New Issue
Block a user