2024-05-27 11:56:04 +02:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
grampsweb: &grampsweb
|
|
|
|
container_name: grampsweb
|
2024-11-06 17:57:39 +01:00
|
|
|
image: ghcr.io/gramps-project/grampsweb:v24.10.0 # version
|
2024-10-23 18:21:54 +02:00
|
|
|
restart: unless-stopped
|
2024-10-23 18:20:04 +02:00
|
|
|
pull_policy: missing
|
2024-05-27 11:56:04 +02:00
|
|
|
ports:
|
|
|
|
- "6483:5000" # host:docker
|
|
|
|
environment:
|
|
|
|
GRAMPSWEB_TREE: "Gramps Web" # will create a new tree if not exists
|
|
|
|
GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
|
|
|
|
GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"
|
|
|
|
GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://grampsweb_redis:6379/1
|
|
|
|
GRAMPSWEB_EMAIL_HOST: "docker10.mgrote.net"
|
|
|
|
GRAMPSWEB_EMAIL_PORT: "1025"
|
|
|
|
GRAMPSWEB_EMAIL_USE_TLS: "false"
|
|
|
|
GRAMPSWEB_DEFAULT_FROM_EMAIL: "gramps@mgrote.net"
|
|
|
|
depends_on:
|
|
|
|
- grampsweb_redis
|
|
|
|
volumes:
|
|
|
|
- gramps_users:/app/users # persist user database
|
|
|
|
- gramps_index:/app/indexdir # persist search index
|
|
|
|
- gramps_thumb_cache:/app/thumbnail_cache # persist thumbnails
|
|
|
|
- gramps_cache:/app/cache # persist export and report caches
|
|
|
|
- gramps_secret:/app/secret # persist flask secret
|
|
|
|
- gramps_db:/root/.gramps/grampsdb # persist Gramps database
|
|
|
|
- gramps_media:/app/media # persist media files
|
|
|
|
- gramps_tmp:/tmp
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5000/"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
grampsweb_celery:
|
|
|
|
<<: *grampsweb # YAML merge key copying the entire grampsweb service config
|
|
|
|
ports: []
|
|
|
|
container_name: grampsweb_celery
|
|
|
|
depends_on:
|
|
|
|
- grampsweb_redis
|
|
|
|
command: celery -A gramps_webapi.celery worker --loglevel=INFO
|
|
|
|
healthcheck: {}
|
|
|
|
|
|
|
|
grampsweb_redis:
|
2024-10-08 00:05:50 +02:00
|
|
|
image: redis:7.4.1-alpine
|
2024-05-27 11:56:04 +02:00
|
|
|
container_name: grampsweb_redis
|
2024-10-23 18:21:54 +02:00
|
|
|
restart: unless-stopped
|
2024-10-23 18:20:04 +02:00
|
|
|
pull_policy: missing
|
2024-05-27 11:56:04 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gramps_users:
|
|
|
|
gramps_index:
|
|
|
|
gramps_thumb_cache:
|
|
|
|
gramps_cache:
|
|
|
|
gramps_secret:
|
|
|
|
gramps_db:
|
|
|
|
gramps_media:
|
|
|
|
gramps_tmp:
|