M
M
Mr. Anderson2021-03-14 18:54:19
Zabbix
Mr. Anderson, 2021-03-14 18:54:19

Is it possible to run 3 applications in 1m docker?

Good day.
Is it possible to make such a docker container that spins on it (Zabbix, mysql, nginx, grafana, prometheus, webmin).
I honestly have not worked with the docker. I saw how they run zabbix on the 1st container, on the 2nd Grafana and so on. And roughly speaking, I need to set up the 1st package of these utilities and transfer it to a person, then the 2nd package of these utilities and transfer it to another person.

Poke please what to read in order to organize this. Well, or in two or three words describe.

Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2021-03-14
@roman_tonkoshkurov

It is possible, but not necessary.

R
Ruslan, 2021-03-16
@Tiasar

As it has already been written here, it is possible but not necessary, in 99% of cases this is the case. But ... there are tasks, for example, I have one agent written in python and I need filebeat and merticbeat in addition to it. It would be possible to raise 3 containers, but shamanism begins with how to read logs and metrics in the context of processes in another container. In addition, like you, I need to replicate the agent and put it in a bunch of places, in some places fierce IBs have closed access to half of the Internet resources, and it’s not convenient to carry 3 images, it’s easier to put everything into one and pick it up in 5 seconds .
Your task is solved quite simply, there is such a wonderful thing as a supervisor. It runs as the main process of the container, and it, in turn, keeps 3 other processes running, restarting them in case of a crash. The container is launched via docker-compose, which guarantees that the container will be restarted if it crashes.
Do as you like, one container - one process is for most of the typical tasks, but not for all!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question