Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Separate Docker containers for sub domains on a single droplet?
What would be the best scenario for having a MEAN stack web application running on a droplet with sub domains using docker container(s)?
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:
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 :)
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.×