Docker image to update an OVH dynhost regularly. Based on Alpine linux.
10K+
Thanks to P4sca1 for its work ! https://github.com/P4sca1/ovh-dynhost
My fork allows to update several domain names within the same container
Docker image to update an OVH dynhost regularly. Based on Alpine linux.
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.
In your OVH domain settings head over to the DynHost tab and follow the steps to create your dynhost.
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.
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
I recommand you to use .env file (chmod 600) for your credentials :)
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
Content type
Image
Digest
Size
9.1 MB
Last updated
over 5 years ago
docker pull comassky/ovh-dynhost