-
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
docker examples #3
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -35,6 +35,38 @@ docker pull ghcr.io/akarys42/cloudflare-ddns-docker | |||||
|
||||||
There are no special requirements when building this container! Simply use `docker build` in this folder. | ||||||
|
||||||
#### For docker command | ||||||
|
||||||
You can use: | ||||||
``` | ||||||
docker run --name ddns_client --rm \ | ||||||
-d ghcr.io/akarys42/cloudflare-ddns-docker \ | ||||||
-k ${token} \ | ||||||
mydomain.cat *.mydomain.cat mail.mydomain.cat | ||||||
``` | ||||||
or | ||||||
``` | ||||||
docker run --name ddns_client --rm \ | ||||||
-e CF_DDNS_DOMAINS="mydomain.cat *.mydomain.cat mail.mydomain.cat" \ | ||||||
-e CF_DDNS_TOKEN="${token}" \ | ||||||
-d ghcr.io/akarys42/cloudflare-ddns-docker | ||||||
``` | ||||||
(replacing ${token} by your Cloudflare DNS Edit Permission Token) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd use |
||||||
|
||||||
#### For docker-compose users | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
``` | ||||||
version: "3.7" | ||||||
services: | ||||||
cloudflare-ddns: | ||||||
image: ghcr.io/akarys42/cloudflare-ddns-docker | ||||||
container_name: ddns_client | ||||||
enviroment: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: |
||||||
CF_DDNS_DOMAINS: "mydomain.cat *.mydomain.cat mail.mydomain.cat" | ||||||
CF_DDNS_TOKEN: "${token}" | ||||||
``` | ||||||
(replacing ${token} again) | ||||||
|
||||||
### Running on the Host | ||||||
|
||||||
In order to run this project on the host, you'll need Python > 3.8, and an environment containing | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## Development docker-compose | ||
version: "3.7" | ||
services: | ||
cloudflare-ddns: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: cloudflare-ddns |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: "3.7" | ||
services: | ||
cloudflare-ddns: | ||
image: ghcr.io/akarys42/cloudflare-ddns-docker | ||
container_name: ddns_client | ||
enviroment: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should instead be loading a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tested using ref: env_file | Compose specification | Docker Documentation There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: |
||
CF_DDNS_DOMAINS: "mydomain.cat *.mydomain.cat mail.mydomain.cat" | ||
CF_DDNS_TOKEN: "${token}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.