A
A
amorphine2018-03-28 19:13:12
Docker
amorphine, 2018-03-28 19:13:12

Docker compose - how to implement a shared container?

There are several projects (LEMP) and there is no problem to create dozens of containers - memory hog nginx/fpm/db*several projects is acceptable.
But there is a task to use Elasticsearch, one instance of which consumes 1 gigabyte of RAM, so it is impossible to allocate an ES instance for each project.
Tell me, how can I implement a certain "general" container?
As I see it at first glance, you need to resolve the host address from the containers and connect to the elastic port.
But this does not seem normal, especially since you have to edit the iptables of the host.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rustler2000, 2018-03-28
@amorphine

A separate grid and in it a container with plastic. There are just two meshes in the composition - a common one for the project and a mesh for the elastic

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question