1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-10 18:47:45 +02:00
wiki/wiki/docker-images/oznu_-_docker-cloudflare-ddns.md
TiynGER 046b9bc995 docker-image folder added
The docker-images where scattered across different files.
For faster access i moved them to an extra folder and linked them if they're needed elsewhere.
entries that where outside this folder and only contained basic documentation of the docker image where removed.
2021-03-16 15:34:35 +01:00

29 lines
828 B
Markdown

# oznu - docker-cloudflare-ddns
The official container and documentation was made by [oznu](https://github.com/oznu/docker-cloudflare-ddns).
## 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
```shell
#!/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
```