Comments (18)
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.
@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.
I second this, I want to update my wildcard A entry as well as the root domain entry
from docker-cloudflare-ddns.
+1
from docker-cloudflare-ddns.
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.
I'd also like to know if it supports multiple subdomains and how we configure it.
from docker-cloudflare-ddns.
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.
+1 for multi-domain support
from docker-cloudflare-ddns.
+1 for multi-domain support
from docker-cloudflare-ddns.
+1 I actually came here looking to see if this functionality was possible.
from docker-cloudflare-ddns.
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.
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.
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.
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.
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.
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.
Mahalo!
from docker-cloudflare-ddns.
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)
- ERROR: Failed to update CloudFlare DNS <domain> from X.X.X.X to ;; connection timed out; no servers could be reached HOT 2
- ssh not working HOT 3
- ERROR: Failed To Get Public IPv4 Address HOT 1
- Update multiple domains HOT 8
- cannot update wildcard * A record HOT 9
- Can update zone or subdomains, but not both HOT 7
- Cloudflare proxy had been disabled. HOT 3
- Updating AAAA record: "connection timed out; no servers could be reached" HOT 1
- Add multiple subdomains without using CNAME?
- API key not working HOT 6
- Support for updating both IPV4 and IPV6 at the same time
- Suggestion - Implement a healthcheck ping HOT 1
- getZoneId is always using the ZONE environment variable, even when ZONE_FILE is set. HOT 4
- Improper DIG Error Handling For IPv4
- log file - no time stamp
- Update multiple sub-domains HOT 3
- IPv6 address detection fallback not working correctly HOT 2
- Large amount of vulnerabilities HOT 2
- Unable to update A record Cookie mismatch
- ERROR: Failed to update CloudFlare DNS record HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-cloudflare-ddns.