Question

How to deploy multiple containers to my droplet automatically?

Let’s say I’ve uploaded multiple images to Container Registry, now I want to deploy them connected into a single network (imagine docker compose), is that possible?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Indeed using docker-compose is one way to go, you would be able to build a single docker-compose file and then run docker-compose up -d to pull up the new images.

Another option would be to use Nginx as described in this tutorial here:

https://www.digitalocean.com/community/questions/how-to-host-multiple-docker-containers-on-a-single-droplet-with-nginx-reverse-proxy

A third option would be to use the DigitalOcean App Platform which automates the whole process for you so that you don’t have to do any server configuration. You will be able to deploy your containers by using images directly from DockerHub:

https://docs.digitalocean.com/products/app-platform/languages-frameworks/docker/

Best, Bobby