mirror of https://github.com/tiyn/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
oznu - docker-cloudflare-ddns
This is a Docker container for dynamically updating cloudflare dns entries. The official container and documentation was made by oznu.
Set-up
Create the file rebuild.sh
.
Change the settings according to your needs and run ./rebuild.sh
afterwards.
Environment variables
Set the following variables with the -e tag.
Variable name | Description |
---|---|
API_KEY= |
append your API key that you retrieved from cloudflare |
ZONE= |
append your domain (for example main.com ) |
SUBDOMAIN |
append your subdomain (for example dynamic ) |
rebuild.sh
#!/bin/sh
docker stop ddns
docker rm ddns
docker pull oznu/cloudflare-ddns
docker run \
--name ddns \
-e API_KEY=1234567890 \
-e ZONE=main.com \
-e SUBDOMAIN=dynamic \
-d oznu/cloudflare-ddns