One IP multiple Ports each on an different Droplet (docker)

Posted March 15, 2018 2.2k views

im new to docker. im a programmer and i’ve just i lil knowledge about servers and other dev-ops thinks. But our server administrator is now gone.

Im trying to outsource some services from our monolith app (to heavy for one droplet) to some microservices (each on his own droplet).

my target is: => monolith app (droplet #1) => microservice 1 (droplet #2) => microservice 2 (droplet #3)

all with the same ssl certificate. the main app is written in php and runs on an apache server.
i will write the microservices in java, javascript and python.

did somebody has an tutorial, to do that?

greats, marco.

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


I believe HAProxy will do what you want.

DigitalOcean has a nice tutorials on it:

One from Medium:

Securing HAProxy with Lets Encrypt:

You can also search for “HAProxy Docker” on DO for lots of other nice tutorials:

Feel free to reply back if you need further help!

by Mitchell Anicas
An introduction to basic load balancing concepts and terminology, using HAProxy, with some examples.