Open wvffle opened 4 years ago
App doesn't react on SIGTERM, it should shutdown itself if this signal is coming ;/
Consider executing the container process in an init system by adding init: true
to the compose options, this will properly forward signals to the application and terminate the container gracefully within seconds as expected.
See https://docs.docker.com/compose/compose-file/compose-file-v2/#init for reference.
When I stop my docker container discord, steam and slack (basically all of mx-puppet-bridge based) bridges are exceeding the grace period defined in the docker-compose.yml every single time.
Setting the
stop_grace_period
to a low value does not satisfy me as those bridges are clearly not shutting down correctly. Logs do not contain any errors so probably the node server does not receive the SIGTERMI have following docker-compose.yml: