Merge pull request #41 from beatz174-bit/codex/update-gramps-deployment-to-use-gramps-web-u6wwj9
Replace Gramps Postgres service with GrampsWeb + Celery + Redis and update secrets/docs
This commit is contained in:
@@ -7,8 +7,8 @@ services:
|
||||
- gramps-redis
|
||||
- grampsweb_celery
|
||||
restart: always
|
||||
# env_file:
|
||||
# - ${SECRETS_ENV_FILE}
|
||||
env_file:
|
||||
- ${SECRETS_ENV_FILE}
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
||||
@@ -62,8 +62,8 @@ services:
|
||||
depends_on:
|
||||
- gramps-redis
|
||||
restart: always
|
||||
env_file:
|
||||
- ${SECRETS_ENV_FILE}
|
||||
# env_file:
|
||||
# - ${SECRETS_ENV_FILE}
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
||||
@@ -91,6 +91,14 @@ services:
|
||||
- ${PROJECT_ROOT}/apps/gramps/data/tmp:/tmp
|
||||
networks:
|
||||
- gramps
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- pgrep -f "celery.*gramps_webapi.celery.*worker" >/dev/null
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
start_period: 60s
|
||||
|
||||
gramps-redis:
|
||||
profiles: ["apps","all","gramps"]
|
||||
@@ -99,6 +107,14 @@ services:
|
||||
restart: always
|
||||
networks:
|
||||
- gramps
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- valkey-cli -h 127.0.0.1 -p 6379 ping | grep -q PONG
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
start_period: 10s
|
||||
|
||||
networks:
|
||||
gramps:
|
||||
|
||||
Reference in New Issue
Block a user