The main purpose of this script is to update IP records on cloudflare DNS
Optional
- Sends notification to a specific device via HomeAssistant
- Updates Atlas MongoDB access list with the new IP
You can run it as a docker container by building it and mounting your config.json
file to /app/config.json
Build
docker build -t dnsupdater:latest .
Run
docker run --name DNSUpdater -it dnsupdater:latest \
-e CRONG_FREQUENCY='*/30 * * * *' \
-e LOGLEVEL='INFO' \
-v /my/path/to/config.json:/app/config.json