diff --git a/docker-compose.yml b/docker-compose.yml index 2d52b815..73eac13e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,7 +77,7 @@ services: worker-async: image: clinicpro-app:latest restart: unless-stopped - command: php bin/console messenger:consume async --time-limit=3600 --memory-limit=128M + command: sh -c "while :; do php bin/console messenger:consume async --time-limit=3600 --memory-limit=128M; sleep 1; done" environment: <<: *app-env RUN_INIT: "0" @@ -99,7 +99,7 @@ services: worker-scheduler: image: clinicpro-app:latest restart: unless-stopped - command: php bin/console messenger:consume scheduler_default --time-limit=3600 --memory-limit=128M + command: sh -c "while :; do php bin/console messenger:consume scheduler_default --time-limit=3600 --memory-limit=128M; sleep 1; done" environment: <<: *app-env RUN_INIT: "0"