Docker container to run DNS updates to a ChangeIP.com account.
Differently from https://github.com/arnaubennassar/docker-changeip-updater, this container run a bash script periodically to check and update the ip address.
๐ณ Docker hub: https://hub.docker.com/r/ivaccari/changeip-updater
Set the following env variables with your ChangeIP.com account info:
export CHANGEIP_USERNAME=user
export CHANGEIP_PASSWORD=password
export CHANGEIP_RECORD=myrecord.example.com
export UPDATE_INTERVAL=10 #seconds between checks. Defaults to 20 seconds
export LOGLEVEL=2 # verboseness levels. 0 = disable logs, 1 = show only update logs, 2 = maximum verbosity. Defaults to 2.
Then pull the latest image and run a one-off container to execute the script:
docker pull ivaccari/changeip-updater
docker run --rm -it \
-e "CHANGEIP_USERNAME=user" \
-e "CHANGEIP_PASSWORD=passwod" \
-e "CHANGEIP_RECORD=record" \
-e "UPDATE_INTERVAL=60" \
ivaccari/changeip-updater
Use the following configuration:
changeip:
container_name: changeipupdater
image: ivaccari/changeip-updater
environment:
- TZ=Europe/Rome
- CHANGEIP_USERNAME=user
- CHANGEIP_PASSWORD=password
- CHANGEIP_RECORD=myrecord.example.com
- UPDATE_INTERVAL=60
restart: always
The timezone is currently set to 'Etc/UTC' but can be changed via the TZ
env variable in the Dockerfile.
To view logs, use the docker utility: docker logs -f CONTAINER
Check your credentials. Check for special chars which might broke passing via env variables.
Escape $
with another $
(becomes $$
).
Just run ./build.sh