Code Monkey home page Code Monkey logo

Comments (7)

thijsjek avatar thijsjek commented on May 24, 2024 1

so you do CONTAINER: TLD

version: '2'
services:
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: always
    environment:
      - API_KEY=xxxxxxx
      - ZONE=mydomain.com

CONTAINER: suddomains

version: '2'
services:
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: always
    environment:
      - API_KEY=xxxxxxx
      - ZONE=*.mydomain.com
      - PROXIED=false

Yes exactly. I just don't use docker compose.

`docker run -d
--name=ddns1
-e API_KEY=
-e ZONE=mydonain.com
--restart=unless-stopped
oznu/cloudflare-ddns

docker run -d
--name=ddns2
-e API_KEY=
-e ZONE=domain.com
-e SUBDOMAIN=*
--restart=unless-stopped
oznu/cloudflare-ddns`

Also from your link:
You can save yourself some trouble when hosting multiple domains pointing to the same IP address (in the case of Traefik) by defining one A & AAAA record 'ddns.example.com' pointing to the IP of the server that will be updated by this DDNS script. For each subdomain, create a CNAME record pointing to 'ddns.example.com'. Now you don't have to manually modify the script config every time you add a new subdomain to your site!

from docker-cloudflare-ddns.

thijsjek avatar thijsjek commented on May 24, 2024

I just created 2 separated docker containers.
One without subdomain=
and one with subdomain=www,cloud,etc

from docker-cloudflare-ddns.

QuanDev2 avatar QuanDev2 commented on May 24, 2024

@thijsjek can you use commas to separate multiple subdomains?

from docker-cloudflare-ddns.

PackElend avatar PackElend commented on May 24, 2024

still, the case that only one of the A-Types gets updated?
first A got updated but not the second one.
image

from docker-cloudflare-ddns.

thijsjek avatar thijsjek commented on May 24, 2024

So, the container let's you put in multiple like comma seperated domains or multiple -e subdomains, but that does not work. I didnt notice because my IP didn't change until I setup like below
I eventually just use 2 containers. One for mydomain.com and one for *.mydomain.com.

To adjust multiple subdomains, I think you have to create several containers.

from docker-cloudflare-ddns.

PackElend avatar PackElend commented on May 24, 2024

so you do
CONTAINER: TLD

version: '2'
services:
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: always
    environment:
      - API_KEY=xxxxxxx
      - ZONE=mydomain.com

CONTAINER: suddomains

version: '2'
services:
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: always
    environment:
      - API_KEY=xxxxxxx
      - ZONE=*.mydomain.com
      - PROXIED=false

from docker-cloudflare-ddns.

PackElend avatar PackElend commented on May 24, 2024

otherwise, may https://github.com/timothymiller/cloudflare-ddns may do it better

from docker-cloudflare-ddns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.