Sign inSign up

marcdufresne/ip-updater

By marcdufresne

•Updated over 7 years ago

Updates a DigitalOcean Record with the public IP of wherever this container is running

Image
0

844

marcdufresne/ip-updater repository overview

Updates a DigitalOcean Record with the public IP of wherever this container is running.

⁠Env vars

Required:

  • DO_API_KEY: Your DigitalOcean API Key, get one from https://cloud.digitalocean.com/account/api/tokens⁠
  • DO_DOMAIN_NAME: The domain name that contains the record to update, e.g.: "example.com".
  • DO_RECORD_ID: DigitalOcean record ID that you want to update, e.g. "64587872".
    • It needs to exist already, so create one if needed and get its ID from the API or your browser's network inspect tab.
    • It needs to be a A record.

Optional:

  • UPDATE_INTERVAL: Time in seconds to sleep between checks, defaults to 30

⁠Full example:

docker run -d \
    -e DO_API_KEY=your_api_key \
    -e DO_DOMAIN_NAME=example.com \
    -e DO_RECORD_ID=64587872 \
    -e UPDATE_INTERVAL=30 \
    marcdufresne/ip-updater:latest

Tag summary

Content type

Image

Digest

Size

60.4 MB

Last updated

over 7 years ago

docker pull marcdufresne/ip-updater