Sign inSign up

comassky/ovh-dynhost

By comassky

•Updated over 5 years ago

Docker image to update an OVH dynhost regularly. Based on Alpine linux.

Image
0

10K+

comassky/ovh-dynhost repository overview

Thanks to P4sca1 for its work ! https://github.com/P4sca1/ovh-dynhost⁠

My fork allows to update several domain names within the same container

⁠ovh-dynhost

Docker image to update an OVH dynhost regularly. Based on Alpine linux.

⁠Why

A DynHost is used to assign a dynamic ip to a subdomain. This can be very useful to make your local development machine available via a public subdomain.

⁠Configure OVH

In your OVH domain settings head over to the DynHost tab and follow the steps to create your dynhost.

⁠Run container

The image is available via Docker Hub.

docker run \
  -e DYNHOST_DOMAIN_NAME=dynhost.example.com \
  -e DYNHOST_LOGIN=login \
  -e DYNHOST_PASSWORD=password \
  --restart always \
  --name ovh-dynhost \
  comassky/ovh-dynhost

Or via docker-compose:

version: "3"

services:
  ovh-dynhost:
    image: comassky/ovh-dynhost
    restart: always
    environment:
      DYNHOST_DOMAIN_NAME: dynhost.example.com
      DYNHOST_LOGIN: login
      DYNHOST_PASSWORD: password

Of course you need to insert your credentials.

This will update the dynhost every 15 minutes if the ip changed.

⁠Multiple domain update
version: "3"

services:
  ovh-dynhost:
    image: comassky/ovh-dynhost
    restart: always
    environment:
      DYNHOST_DOMAIN_NAME: dynhost.example.com, dynhost.example2.com
      DYNHOST_LOGIN: login
      DYNHOST_PASSWORD: password
⁠Credentials

I recommand you to use .env file (chmod 600) for your credentials :)

⁠Updating the dynhost manually

If your ip changed and you can't wait 15 minutes for the next update to happen, you can update the dynhost manually.

docker container exec ovh-dynhost ./dynhost.sh

Or when using docker-compose:

docker-compose exec ovh-dynhost ./dynhost.sh

Tag summary

Content type

Image

Digest

Size

9.1 MB

Last updated

over 5 years ago

docker pull comassky/ovh-dynhost