mirror of
https://github.com/cupcakearmy/docker-ddns-cloudflare.git
synced 2024-12-21 23:36:24 +00:00
Cloudflare DDNS Script
.gitignore | ||
.sample.env | ||
docker-compose.yml | ||
Dockerfile | ||
README.md | ||
run.sh |
Docker DDNS Cloudflare
This container is an adapted version of this script.
Quickstart 🚀
-
Get yout api token here (Top right -> My Profile -> Scroll Down -> Global Api Key)
-
Create an
.env
file:
EMAIL=my@mail.com
KEY=my_api_key
ZONE=example.org
DNS_RECORD=some.example.org
- Run the container
docker run -d --name ddns --restart always --env-file .env cupcakearmy/ddns-cloudflare
To check logs:
docker logs ddns
Docker-Copmose
With docker-compose:
git clone https://github.com/CupCakeArmy/docker-ddns-cloudflare.git
cp .sample.env .env
# Edit the .env file with your data
docker-compose up -d