Using Supervisor To Run Multiple Apps In A Container

preview_player
Показать описание
I answer a question on when you should run multiple apps in a container, and how you can use supervisor to do that.
Show Notes:
Docker Docs on Supervisor and Multiple Services In Containers

Bret's Example of PHP-FPM plus Nginx Supervisor Config
Рекомендации по теме
Комментарии
Автор

excellent answer. exactly what I needed. Especially the explanation why both should run in one container in this case.

konturgestalter
Автор

Thanks! It worked for me to deploy symfony+cqrs.

antonivanov
Автор

There are multiple reason, why ppl use docker.
one of them is that to bundle app with multiple binary, to ease client side deployment.

bokunochannel
Автор

In my opinion you can package both php app and nginx inside the same image, then you don't need to use a shared volume, because your code live inside the same container as nginx and php-fpm. You can easily update your app image containing php and nginx and don't need to carry about your volume.

deepdeep
Автор

with such a configuration(with supervisor.) we are logging, in console, only php not nginx right ?

slimane
Автор

I have one question that if I run multiple apps In a container, will it reduce the CPU/Mem resources? thanks

x-macpro
Автор

Why to run multiple application in container?

emmanuelgelatimesa
Автор

Please consider removing annoying uptempo intros. Its like having Background music on Websites.

comod
Автор

I have a doubt regarding laravel worker conf inside
I have placed environment variables for database in the format environment=DB_HOST="${DB_HOST}", DB_DATABASE="${DB_DATABASE}"
I have given this variables as key value pair inside my caprover dashboard. Its picking up fine for my laravel app, but supervisor is not picking it and i am facing database connection error. Now I have solved the problem by directly giving the values inside my conf file /etc/supervisor/conf.d/laravel-worker.conf, can you suggest me how to make the environment variables to work inside supervisor.

gramathilekannan