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
|
- gramps-redis
|
||||||
- grampsweb_celery
|
- grampsweb_celery
|
||||||
restart: always
|
restart: always
|
||||||
# env_file:
|
env_file:
|
||||||
# - ${SECRETS_ENV_FILE}
|
- ${SECRETS_ENV_FILE}
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ}
|
TZ: ${TZ}
|
||||||
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
||||||
@@ -62,8 +62,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- gramps-redis
|
- gramps-redis
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
# env_file:
|
||||||
- ${SECRETS_ENV_FILE}
|
# - ${SECRETS_ENV_FILE}
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ}
|
TZ: ${TZ}
|
||||||
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
||||||
@@ -91,6 +91,14 @@ services:
|
|||||||
- ${PROJECT_ROOT}/apps/gramps/data/tmp:/tmp
|
- ${PROJECT_ROOT}/apps/gramps/data/tmp:/tmp
|
||||||
networks:
|
networks:
|
||||||
- gramps
|
- 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:
|
gramps-redis:
|
||||||
profiles: ["apps","all","gramps"]
|
profiles: ["apps","all","gramps"]
|
||||||
@@ -99,6 +107,14 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- gramps
|
- 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:
|
networks:
|
||||||
gramps:
|
gramps:
|
||||||
|
|||||||
Reference in New Issue
Block a user