Giter Club home page Giter Club logo

docker-changeip-updater's Introduction

ChangeIP DNS Updater

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

Quick Start

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

Docker-compose

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

Timezone

The timezone is currently set to 'Etc/UTC' but can be changed via the TZ env variable in the Dockerfile.

Logs

To view logs, use the docker utility: docker logs -f CONTAINER

FAQ

I'm getting "BAD AUTH"!

Check your credentials. Check for special chars which might broke passing via env variables. Escape $ with another $ (becomes $$).

Build images

Just run ./build.sh

docker-changeip-updater's People

Contributors

ivanvaccari avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.