Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Update multiple sub-domains #94

Open
ikkerus opened this issue Feb 4, 2022 · 3 comments
Open

Update multiple sub-domains #94

ikkerus opened this issue Feb 4, 2022 · 3 comments

Comments

@ikkerus
Copy link

ikkerus commented Feb 4, 2022

Unfortunately since a couple of updates of the "latest" repository the updates of the subodmains is not working anymore.
I'm using it on unraid and it only updates the latest variable (subdomain 6). See also #79

image

@NdR91
Copy link

NdR91 commented Feb 20, 2022

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

@backmind
Copy link

backmind commented Mar 1, 2022

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.

@sineverba
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants