-
Notifications
You must be signed in to change notification settings - Fork 534
Closed
Description
I noticed some containers are stopping after around 10.5 seconds like cron and adminer(maybe other).
10 seconds is the maximal time docker is waiting before stopping the container if unresponsive.
It looks like those containers don't receive SIGTERMs.
Adding init: true to each container fixed it for me:
crond_mfa:
image: wodby/drupal-php:$PHP_TAG
container_name: "${PROJECT_NAME}_crond"
init: true
environment:
CRONTAB: "0 * * * * drush -r /var/www/html/web cron"
command: sudo -E crond -f -d 0
https://docs.docker.com/compose/compose-file/compose-file-v2/#init
What do you think of adding it ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels