From 76848dde1c5d4234f97bceccf17645214445776d Mon Sep 17 00:00:00 2001 From: Maksym Buz <79866323+xopek-by@users.noreply.github.com> Date: Sun, 23 Feb 2025 18:44:15 +0100 Subject: [PATCH] Oznu DDNS was archived, replaced with favonia --- Docker/ddns-cloudflare/.env | 4 +-- Docker/ddns-cloudflare/compose.yaml | 38 +++++++++++++++++++++++------ 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/Docker/ddns-cloudflare/.env b/Docker/ddns-cloudflare/.env index f4b79b4..bc802c4 100644 --- a/Docker/ddns-cloudflare/.env +++ b/Docker/ddns-cloudflare/.env @@ -1,5 +1,5 @@ # Cloudflare API key. User -> My Profile -> API tokens -CLOUDFLARE_API=your_api_key +CLOUDFLARE_API_TOKEN=your_api_key # Cloudflare zone, which will be used. Dashboard -> Web Sites -ZONE=your_zone \ No newline at end of file +DOMAINS=your_domains \ No newline at end of file diff --git a/Docker/ddns-cloudflare/compose.yaml b/Docker/ddns-cloudflare/compose.yaml index 5036f91..97666e5 100644 --- a/Docker/ddns-cloudflare/compose.yaml +++ b/Docker/ddns-cloudflare/compose.yaml @@ -1,13 +1,35 @@ services: cloudflare-ddns: - container_name: ddns-cloudflare - image: oznu/cloudflare-ddns:latest + image: favonia/cloudflare-ddns:latest + # Choose the appropriate tag based on your need: + # - "latest" for the latest stable version (which could become 2.x.y + # in the future and break things) + # - "1" for the latest stable version whose major version is 1 + # - "1.x.y" to pin the specific version 1.x.y + network_mode: host + # This bypasses network isolation and makes IPv6 easier (optional; see below) restart: always - env_file: - - .env + # Restart the updater after reboot + user: "1000:1000" + # Run the updater with specific user and group IDs (in that order). + # You can change the two numbers based on your need. + 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: - - API_KEY=${CLOUDFLARE_API} - - ZONE=${ZONE} + - CLOUDFLARE_API_TOKEN=YOUR-CLOUDFLARE-API-TOKEN + # Your Cloudflare API token + - DOMAINS=example.org,www.example.org,example.io + # Your domains (separated by commas) - PROXIED=true - - PUID=1000 - - PGID=1000 \ No newline at end of file + # Tell Cloudflare to cache webpages and hide your IP (optional) +#networks: +# LAN0: +# external: true +# name: LAN0 +# Introduce custom Docker networks to the 'services' in this file. A common use case +# for this is binding one of the 'services' to a specific network interface available at +# Docker's host. This section is required for the 'networks' section of each 'services'. \ No newline at end of file