Home > database >  How autorun supervisord in php-fpm container
How autorun supervisord in php-fpm container

Time:08-09

I have php-fpm container with installed supervisor. But using command: CMD ["usr/bin/supervisord"] in Docker file made container finishing with fail(Unlinking stale socket /var/run/supervisor.sock). Run as daemon. But if remove CMD, and run command ourself in bash after container ran, its finish ok.

P.S. sry for my english, hope for your help

EDIT: i use laravel framework, and i need to start queue listener and other processes.

CodePudding user response:

Use webdevops images it contains supervisord without any issue

webdevops/php-nginx:7.4

add your config path in the container is

/opt/docker/etc/supervisor.d/MY_CONF.conf Don't assign user when running (supervisor needs root)

CodePudding user response:

I resolved my issue. i set command usr/bin/supervisord && pfp-fpm and its worked correct. Without run command php-fpm container stopped at supervisord and fail.

  • Related