By marco83
Hallo, 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: 123.123.123.123:80 => monolith app (droplet #1) 123.123.123.123:12345 => microservice 1 (droplet #2) 123.123.123.123:12346 => microservice 2 (droplet #3) etc…
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.
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!
Hello,
I believe HAProxy will do what you want.
DigitalOcean has a nice tutorials on it: https://www.digitalocean.com/community/tutorials/an-introduction-to-haproxy-and-load-balancing-concepts
One from Medium: https://medium.com/@nirgn/load-balancing-applications-with-haproxy-and-docker-d719b7c5b231
Securing HAProxy with Lets Encrypt: https://www.digitalocean.com/community/tutorials/how-to-secure-haproxy-with-let-s-encrypt-on-ubuntu-14-04
You can also search for “HAProxy Docker” on DO for lots of other nice tutorials: https://www.digitalocean.com/community/tutorials?q=haproxy+docker
Feel free to reply back if you need further help!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.