Question

How to deploy multiple containers to my droplet automatically?

Posted December 18, 2021 174 views
DockerDeploymentDigitalOcean Container Registry (DOCR)

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?

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.

×
Submit an Answer
1 answer

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