Skip to main content

Automated Deployment with Watchtower

ยท One min read

You can use Watchtower to automate the deployment of a dockerized app on a VPS.

The Watchtower container will pull new images from Docker Hub or another registry and restart the container with updated images.

Start it with:

docker run -d \
--name watchtower \
-e REPO_USER=dockerhub_username \
-e REPO_PASS=dockerhub_access_token \
-v /var/run/docker.sock:/var/run/docker.sock \

You can then take advantage of the Docker Hub automated builds to build and deploy on push.