fix(docker): keep worker task runner alive with retry loop

Original command exited after a single tasks:run pass, causing
worker container to stop instead of running scheduled tasks
continuously.

- INSTALL.md: wrap `php spark tasks:run` in a shell loop that
  reruns it every 60s, so worker container matches
  `restart: unless-stopped` intent and keeps processing tasks

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
This commit is contained in:
objecttothis committed 2026-09-23 13:07:41 +04:00
1 parent 276cff39ce
commit 1e42c3b7ef
1 file changed
+1 -1
+1 -1
View File
@@ -135,7 +135,7 @@ Add a second service to your `docker-compose.yml` pointing at the same database:
```yaml
worker:
image: opensourcepos
command: php spark tasks:run
command: sh -c "while true; do php spark tasks:run; sleep 60; done"
depends_on:
- db
restart: unless-stopped