From 5fc6b4a53b4bf3c48734020bd8609fbfcdf854c3 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Sun, 29 Mar 2026 10:30:23 +0200 Subject: [PATCH] feat: add Messenger worker Docker service Reuses the app image with messenger:consume command. Restarts automatically, with 1h time limit and 256M memory limit. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 948e286..fe575de 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -18,6 +18,14 @@ services: database: condition: service_healthy + messenger: + image: git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:latest + command: ["php", "bin/console", "messenger:consume", "async", "--time-limit=3600", "--memory-limit=256M"] + restart: unless-stopped + depends_on: + database: + condition: service_healthy + database: build: context: docker/database