The PID 1 process is php and it can't handle signals properly, something like https://github.com/Yelp/dumb-init should be used as init process.
Currently the container takes minimum of 10 seconds to shut down when stopped by docker-compose. This is because the default timeout for SIGTERM processing is 10 seconds and SIGKILL is sent afterwards.
The PID 1 process is php and it can't handle signals properly, something like https://github.com/Yelp/dumb-init should be used as init process.
Currently the container takes minimum of 10 seconds to shut down when stopped by docker-compose. This is because the default timeout for SIGTERM processing is 10 seconds and SIGKILL is sent afterwards.
You can read more about this issue at https://docs.docker.com/compose/faq/#why-do-my-services-take-10-seconds-to-recreate-or-stop and https://github.com/Yelp/dumb-init#why-you-need-an-init-system