Report this

What is the reason for this report?

Separate Docker containers for sub domains on a single droplet?

Posted on August 24, 2020

Hi there,

What would be the best scenario for having a MEAN stack web application running on a droplet with sub domains using docker container(s)?

For example: domain.com (landingspage) (nginx) api.domain.com (backend API) (node) app.domain.com (frontend client side) (nginx)

Ideally would be that each sub domain has it’s own container so that we can keep the SoC in mind.

After doing some research we see that there is a way doing this with a nginx reserve proxy as explained here: https://www.digitalocean.com/community/questions/how-to-host-multiple-docker-containers-on-a-single-droplet-with-nginx-reverse-proxy

Would this be the ideal situation when we having separate repo’s and having an SSL wildcard for the subdomains?

Any help or guidance would be very appreciated :)

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.