2019-01-22 13:03:30 +01:00
|
|
|
# Docker DDNS Cloudflare
|
|
|
|
This container is an adapted version of [this](https://gist.github.com/benkulbertis/fff10759c2391b6618dd) script.
|
|
|
|
|
|
|
|
## Quickstart 🚀
|
|
|
|
|
2019-01-22 13:12:50 +01:00
|
|
|
1. Get yout api token [here](https://dash.cloudflare.com/) (Top right -> My Profile -> Scroll Down -> Global Api Key)
|
|
|
|
|
|
|
|
2. Create an `.env` file:
|
2019-01-22 13:03:30 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
EMAIL=my@mail.com
|
|
|
|
KEY=my_api_key
|
|
|
|
ZONE=example.org
|
|
|
|
DNS_RECORD=some.example.org
|
|
|
|
```
|
|
|
|
|
2019-01-22 13:12:50 +01:00
|
|
|
3. Run the container
|
2019-01-22 13:03:30 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
docker run -d --name ddns --restart always --env-file .env cupcakearmy/ddns-cloudflare
|
|
|
|
```
|
|
|
|
|
|
|
|
To check logs:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker logs ddns
|
|
|
|
```
|
|
|
|
|
|
|
|
### Docker-Copmose
|
|
|
|
|
|
|
|
With docker-compose:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
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
|
2019-01-22 13:12:50 +01:00
|
|
|
```
|