Minimalistic docker image for dynamic DNS provided e.g. by duckdns.org
The goal of this repository is to create minimalistic docker image for updating DNS records of duckdns.org. The Dockerfile
is based on busybox without any other dependencies, so the result image should be about the same size as the busybox image (much smaller than e.g. alpine).
docker run -d --name duckdns --restart unless-stopped \
-e DUCKDNS_URL='https://www.duckdns.org/update?domains=exampledomain&token=a7c4d0ad-114e-40ef-ba1d-d217904a50f2' \
-e DUCKDNS_INTERVAL=300 \
-e DUCKDNS_TIMEOUT=10 \
midlan6/duckdns-minimalistic
Put your's duckdns url to DUCKDNS_URL
variable. Verbose version is also supported.
Variables DUCKDNS_INTERVAL
and DUCKDNS_TIMEOUT
are optional. Default values are same as shown in example above.
This docker image uses standard docker logging. To view the logs use:
docker logs <container>
docker-compose.yml
example:
version: '3'
services:
duckdns:
container_name: duckdns
image: midlan6/duckdns-minimalistic
restart: unless-stopped
environment:
- DUCKDNS_URL=https://www.duckdns.org/update?domains=exampledomain&token=a7c4d0ad-114e-40ef-ba1d-d217904a50f2
- DUCKDNS_INTERVAL=300
- DUCKDNS_INTERVAL=60
Dockerhub repository: midlan6/duckdns-minimalistic
GitHub repository: midlan/docker-duckdns-minimalistic
The image should be compatible with other dynamic DNS services. Feel free to let me know if you successfully use it with any.