I use an application that runs on three different dockers:
- The first one is an HTTP-HTTP server with a REST API
- The second is rabbitmq
- The third is the worker
The whole application is launched using docker-compose up
Really simple :)
I would like to make it scalable and run several instances of this entire application (3 docker images) independently of the others, and then install a load balancer, for example haproxy, which will be redirected to one of the applications.
I saw what I can use docker-compose up --scale blablabla, however the problem is that I can scale the containers, but I really want the other “application” to be independent.
For example, if I want version 3 of the application, I will have 9 images of dockers, etc.
I saw that we can run docker inside docker using --privilege(letting me create one docker with three docker inside), but I read in Stack Overflow that this is not a suitable solution.
Do you have a solution? Or at least some documents to read.
I heard that Kubernetes might be the solution, but I'm not sure. I read (on the stack)
If you need several hard-bound containers, you can look at Kubernetes, which launches docker in its "containers"
source
share