Report this

What is the reason for this report?

Can docker-compose services/containers span multiple droplets? (In DO, of course)

Posted on April 10, 2018

I’m fine with installing/using docker/docker-compose on a single host (a la my current dev environment). In DO’s IaaS, though, can I achieve something like Kubernetes, where my compose services would run in their own (independently scalable) droplets with networking between them?

Use case: my app has 8 services that have very different demands and usage trends. My ETL extractor will fetch every hour, with a huge spike in network activity and subsequent Translate/Load.

  1. It would stink if that activity interfered with my React/Express client service(s).
  2. It would equally stink if I had to keep my whole Droplet scaled to mitigate that load.

^— granular scaling is pretty important there :)



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.

I found this - in my Medium bookmarks of all places lol. “A Kubernetes quick start for people who know just enough about Docker to get by” @adnanrahic https://blog.sourcerer.io/a-kubernetes-quick-start-for-people-who-know-just-enough-about-docker-to-get-by-71c5933b4633

Looks like the Kubernetes examples are ON digitalocean, so I have to say it’ll work.

Sorry, this answer is waaaaaaaaaay overdue. But, yes. You can connect multiple Droplets in a cluster either with Kubernetes or Docker Swarm. I’ve tried both. However, you need to make sure you have a private network between the droplets. Or, use the managed Kubernetes service DigitalOcean is offering. :)

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.