Docker image to update a Dynu DDNS domain with your current IP from your ISP provider.
It also tracks all IP changes an exposes them through a http server on port 1050.
IP History Server
|
project-root/
βββ docker-compose.yml
βββ README.md
βββ ip_history.png
βββ dynuiuc/
βββ .dockerignore
βββ requirements.txt
βββ Dockerfile
βββ db/
β βββ ip_history.db
βββ python/
β βββ apicalls.py
β βββ apiresponse.py
β βββ database.py
β βββ envvars.py
β βββ history_server.py
β βββ main.py
βββ tempates/
βββ status_template.html
docker-compose.yml: docker compose configurationdynuiuc/Dockerfile: docker build configurationdynuiuc/.dockerignore: docker build configuration support
- Copy files into your docker installation
- Execute
docker compose up --build -d
Open your favourite browser to:
- IP History
http://<your-ip>:1050/status
Change values as your needs:
version: '3.8'
services:
dynuiuc:
build: ./dynuiuc
container_name: dynuiuc
restart: unless-stopped
ports:
- "1050:1050"
environment:
- TZ=Europe/Madrid
- USERNAME=YOUR_DYNU_USERNAME
- PASSWORD=YOUR_DYNU_PASS
- HOSTNAMES=YOUR_DOMAIN
- DYNU_UPDATE_URL=https://api.dynu.com/nic/update
- IP_SOURCES=https://api.ipify.org?format=json
- REFRESH_TIME=300
- DB_FILE=db/ip_history.db
- TEMPLATES_DIR=templates
This docker image has been created based on dokeraj one
