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: