From 3155c4b7d20c76dca95ea8df5a4f4e47f24c45de Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sun, 5 Apr 2026 19:36:26 +0000 Subject: [PATCH] Add Celery worker for GrampsWeb async tasks (GEDCOM import) (STI-91) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GrampsWeb uses Celery for background tasks like GEDCOM imports. Without a dedicated worker process, imports get queued in Redis but never processed — resulting in silent failures. Add grampsweb_celery service using the same image with celery worker command. Co-Authored-By: Paperclip --- compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/compose.yml b/compose.yml index 4f398fc..bc95436 100644 --- a/compose.yml +++ b/compose.yml @@ -235,6 +235,22 @@ services: - db - redis + grampsweb_celery: + image: ghcr.io/gramps-project/grampsweb:latest + restart: unless-stopped + environment: + - GRAMPSWEB_SECRET_KEY=${GRAMPSWEB_SECRET_KEY:-dev-grampsweb-secret-key-not-for-production} + - GRAMPSWEB_TREE=${GRAMPSWEB_TREE:-Stiftung} + - GRAMPSWEB_BASE_URL=${GRAMPSWEB_BASE_URL:-https://ahnenforschung.vhtv-stiftung.de} + - GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0 + - GRAMPSWEB_CELERY_CONFIG__result_backend=redis://redis:6379/0 + - GRAMPSWEB_NEW_DB_BACKEND=sqlite + command: celery -A gramps_webapi.celery worker --loglevel=info + volumes: + - gramps_data:/app/data + depends_on: + - redis + volumes: dbdata: gramps_data: