-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just an example #2
Comments
Hello @xeviff! Thank you for opening an issue. This would indeed be a correct way to start the project. I would recommend you to either supply all your parameters using env vars or command line arguments. For example:
or
In a docker-compose, you should be able to a similar thing: version: "3.7"
services:
cloudflare-ddns:
image: ghcr.io/akarys42/cloudflare-ddns-docker
container_name: ddns_client
enviroment:
CF_DDNS_DOMAINS: "mydomain.cat *.mydomain.cat mail.mydomain.cat"
CF_DDNS_TOKEN: "[REDACTED]" That said, I 100% agree that this project is lacking proper setup instructions. So here is what I'm thinking:
Would you be interested in making those changes? Also it seemed like you passed an actual token in your original comment. I took the liberty to redact it just in case, but if it was valid please do roll it right now. |
Hello @Akarys42 !! Thank you very much for your response. You proposed interesting changes and if I have some free time I'll put them into a pull request. |
Awesome, thank you!
|
I can see this hasn't been updated for a while, but I thought I'd give some feedback here. I've just set this up using docker compose, and as far as I can see it's working, so thanks for taking the time to write the script. Here's my working docker-compose file: ## Development docker-compose
version: "3.7"
services:
cloudflare-ddns:
image: ghcr.io/akarys42/cloudflare-ddns-docker
container_name: cloudflare-ddns
environment:
- CF_DDNS_TOKEN=<my_token>
- CF_DDNS_DELAY=1 hour
- CF_DDNS_DOMAINS=<my_domain>.com A little feedback here:
|
Nice! Thank you so much to give this update. I tried and it works. |
I'm getting this error with the above docker compose: version: "3.7" |
Figured it out: environment was misspelled. This was from one of the above posts and I copied it without double checking. |
Hi!.
Just wanted to do more easy work for people that face this: A command example
I tried to translate into a docker-compose without success. Maybe someone wanted to do this next step?
Regards
The text was updated successfully, but these errors were encountered: