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
• 7,060 points
596 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,680 points

Related Questions In Docker

0 votes
2 answers
0 votes
2 answers
0 votes
1 answer

Docker for windows Error: Cannot ping google.com from windows containers

Docker for windows and linux have different ...READ MORE

answered Oct 16, 2018 in Docker by Tyrion anex
• 8,700 points
1,734 views
+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
• 10,620 points
785 views
+2 votes
1 answer
+2 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
• 58,020 points
2,719 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,680 points
1,006 views
+1 vote
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,680 points
738 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP