Code Monkey home page Code Monkey logo

Comments (3)

sineverba avatar sineverba commented on May 25, 2024 1

I solved launching multiple containers. Simply and it works very well.

from docker-cloudflare-ddns.

NdR91 avatar NdR91 commented on May 25, 2024

Same request here, it takes only the last "SUBDOMAIN" value, ignoring the orthers.

from docker-cloudflare-ddns.

backmind avatar backmind commented on May 25, 2024

Same request here! This is one of the best docker for cloudflare ddns, It will be handy to launch just one image with all the subdomains rather than a image per subdomain.

What I did was to add docker-compose extension fields to simplify a little the tedious work. For each subdomain add an entry like:

    container_name: cf-ddns-SUBDOMAIN_NAME
    <<: *network-ddns-core
    environment:
      <<: *network-ddns-env
      SUBDOMAIN: "SUBDOMAIN_NAME" 

Where x-network-ddns-core is:

    image: oznu/cloudflare-ddns:latest
    secrets:
      - cf_api_key
      - cf_token_zone
    networks:
      - socket_proxy
    security_opt:
      - no-new-privileges:true
    restart: always 

and x-network-ddns-envv is:

    API_KEY_FILE: /run/secrets/cf_token_zone
    ZONE: $DOMAINNAME
    PROXIED: "true"
    RRTYPE: A
    DELETE_ON_STOP: "false" 

And are defined at the beginning of the docker-compose. I also have defined DOMAINNAE at .env file and cf_token_zone in secrets.

This is not an elegant solution. I have up to 8 subdomains, and each time I want to add new subdomain in traefik I must to create a new entry on docker-compose in this way.

Hope this workaround suits you.

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.