Report this

What is the reason for this report?

How to deploy multiple containers to my droplet automatically?

Posted on December 18, 2021

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?



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.