Docker : multiples linked containers for each customers

0 votes

I'm developing a platform that monitor emails, save the results in a Mongo database (through Parse-Server) and display the results on a web app (using AngularJS).

Basically, for each customer i want a SMTP server, a Parse Server, a MongoDB & a web platform.

I thought of using Docker for more scalability and the idea is to automatically create the containers when the user signup on my website but I don't really understand how to link these containers together : web1|smtp1 connected to parse1 connected to mongo1 & web2|smtp2 connected to parse2 connected to mongo2.

In the end, i want the customers to access the web app through web1.website.com, so I think i should also use Haproxy..

I'm just wondering if it's really the best way to do it as i'm going crazy with the automation process and if you have any tips to do that.

Jul 11, 2018 in Docker by Nilesh
• 6,900 points
25 views

1 answer to this question.

0 votes
Using Docker (specifically Docker Compose) linking containers together is very easy. In fact it happens out of the box! If you compose all your containers at the same time, a Docker network is created for your "composed app" and all containers can see each other.
answered Jul 11, 2018 by Kalgi
• 2,620 points

Related Questions In Docker

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

What is the default amount of memory provided for Windows Docker containers?

Docker for Windows containers by default get: On ...READ MORE

answered Oct 25, 2018 in Docker by Sophie may
• 9,530 points
31 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,520 points
132 views
0 votes
1 answer

Should I use Vagrant or Docker for creating an isolated environment?

If your purpose is the isolation, I ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,620 points
39 views
0 votes
1 answer

How to remove old Docker containers

There is a new feature in Docker 1.13.x called Docker ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,620 points
32 views