Git Product home page Git Product logo

Comments (18)

dawidmachon avatar dawidmachon commented on May 6, 2024 2

Dear @oznu
SUBDOMAIN=subdomain,secondsubdomain,third,etc

that would be wonderful

or possibility to add full configs like in array to customize each

from docker-cloudflare-ddns.

riDuxd avatar riDuxd commented on May 6, 2024 2

@gogoswh I'm also relatively new to Docker (month'ish) using it, but here's a regular WP docker-compose file I have created.

version: "3.9"
    
services:

  db:
    image: mariadb:latest
    volumes:
      - db_data:/var/lib/mysql
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: mysqlpasswordhere
      MYSQL_DATABASE: wordpress
      # User Password for phpMyAdmin as well
      MYSQL_USER: mysqlusernamehere
      # Password for phpMyAdmin as well
      MYSQL_PASSWORD: mysqluserpasswordhere
    
  wordpress:
    depends_on:
      - db
    image: wordpress:latest
    volumes:
      - wordpress_data:/var/www/html
      # Used for changing the default WP upload limits
      - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
    ports:
      # Use your own ports here; to be used with NGINX Proxy Manager (External : Internal)
      - "9000:80"
    restart: unless-stopped
    environment:
      WORDPRESS_DB_NAME: wordpress
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: mysqlusernamehere
      WORDPRESS_DB_PASSWORD: mysqluserpasswordhere

  phpmyadmin:
    depends_on:
      - db
    image: phpmyadmin:latest
    restart: unless-stopped
    ports:
      # Use your own ports here; to be used with NGINX Proxy Manager (External : Internal)
      - '9001:80'
    environment:
      - PMA_HOST=db
      - MYSQL_ROOT_PASSWORD=mysqlpasswordhere
  
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: unless-stopped
    environment:
      - API_KEY= # use your API here
      - ZONE= # use your domain here
      - SUBDOMAIN= # add subdomain here otherwise delete the line entirely
      - PROXIED=true # Use false first before you setup NPM. Use true later if you want it to be proxied by cloudlfare. 
      - CRON="@daily" # I use daily. Use https://crontab.guru/ for reference.

volumes:
  db_data:
  wordpress_data:

from docker-cloudflare-ddns.

cn-ml avatar cn-ml commented on May 6, 2024

I second this, I want to update my wildcard A entry as well as the root domain entry

from docker-cloudflare-ddns.

ALutz273 avatar ALutz273 commented on May 6, 2024

+1

from docker-cloudflare-ddns.

misterjtc avatar misterjtc commented on May 6, 2024

I am so confused by this. Does this docker actually only support either the root of the domain or a single subdomain? If this is true this is kind of useless isn't it? Does that mean I would have to run a container for each subdomain?

from docker-cloudflare-ddns.

chipped avatar chipped commented on May 6, 2024

I'd also like to know if it supports multiple subdomains and how we configure it.

from docker-cloudflare-ddns.

carlosdesedas avatar carlosdesedas commented on May 6, 2024

hi.. I'd love to get this script, as mentioned above, to update the different A records I have under my domain, not only the main one....
Besides my root domain I also have other A records... PLEX.mydomain.com, CCTV.mydomain.com, FTP.mydomain.com... these are not getting updated...

thanks for your help @oznu !

from docker-cloudflare-ddns.

proap avatar proap commented on May 6, 2024

+1 for multi-domain support

from docker-cloudflare-ddns.

Semtex1982 avatar Semtex1982 commented on May 6, 2024

+1 for multi-domain support

from docker-cloudflare-ddns.

DJFraz avatar DJFraz commented on May 6, 2024

+1 I actually came here looking to see if this functionality was possible.

from docker-cloudflare-ddns.

shawnhank avatar shawnhank commented on May 6, 2024

Agreed. Would love to see this added to an already elegant method of updating Cloudflare with my ISPs' Dynamic IP address assignments.

from docker-cloudflare-ddns.

shawnhank avatar shawnhank commented on May 6, 2024

One more comment or thought... wouldn't it be easy to run another instance of this container and specify the sub-domain? While I get the idea may not be efficient, running additional containers to update the subdomains would work, based on my testing. Of course, your mileage may vary depending on the availability of compute resources.

from docker-cloudflare-ddns.

misterjtc avatar misterjtc commented on May 6, 2024

I feel like that is just forcing it to do something its not built to do and wasting resources. I am not really sure what this is built to do actually. I guess if you're hosting one site against a domain it's fine.

I guess my point is there is no reason to do something like this. There are a myriad of other solutions. For example I am using ddclient instead because I can add all the subdomains I want.

from docker-cloudflare-ddns.

riDuxd avatar riDuxd commented on May 6, 2024

I haven't tried it yet, but I have multiple docker containers for each website that I self host. I could probably just add the cloudflare service directly to those sites' docker-compose.yml file. It may or may not work.

PS: I'm still new to Docker.

EDIT: Yep it works.

from docker-cloudflare-ddns.

proap avatar proap commented on May 6, 2024

for those needing multi-domain support, you can try this one:
https://github.com/joshuaavalon/docker-cloudflare

It works just great for me

from docker-cloudflare-ddns.

shawnhank avatar shawnhank commented on May 6, 2024

@riDuxd

Could you share/post your docker-compose.yml file so I can use it as a reference?

I'm still new to Docker Compose and YAML

from docker-cloudflare-ddns.

shawnhank avatar shawnhank commented on May 6, 2024

Mahalo!

from docker-cloudflare-ddns.

stale avatar stale commented on May 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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.