121 lines
4.5 KiB
YAML
121 lines
4.5 KiB
YAML
services:
|
|
grampsweb:
|
|
profiles: ["apps","all","gramps"]
|
|
image: ghcr.io/gramps-project/grampsweb:latest
|
|
container_name: gramps-web
|
|
depends_on:
|
|
- gramps-redis
|
|
- grampsweb_celery
|
|
restart: always
|
|
env_file:
|
|
- ${SECRETS_ENV_FILE}
|
|
environment:
|
|
TZ: ${TZ}
|
|
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
|
GRAMPSWEB_BASE_URL: ${GRAMPSWEB_BASE_URL}
|
|
GRAMPSWEB_SECRET_KEY: ${GRAMPSWEB_SECRET_KEY}
|
|
GRAMPSWEB_REGISTRATION_DISABLED: ${GRAMPSWEB_REGISTRATION_DISABLED}
|
|
GRAMPSWEB_EMAIL_HOST: ${GRAMPSWEB_EMAIL_HOST}
|
|
GRAMPSWEB_EMAIL_PORT: ${GRAMPSWEB_EMAIL_PORT}
|
|
GRAMPSWEB_EMAIL_HOST_USER: ${GRAMPSWEB_EMAIL_HOST_USER}
|
|
GRAMPSWEB_EMAIL_HOST_PASSWORD: ${GRAMPSWEB_EMAIL_HOST_PASSWORD}
|
|
GRAMPSWEB_EMAIL_USE_SSL: ${GRAMPSWEB_EMAIL_USE_SSL}
|
|
GRAMPSWEB_EMAIL_USE_STARTTLS: ${GRAMPSWEB_EMAIL_USE_STARTTLS}
|
|
GRAMPSWEB_DEFAULT_FROM_EMAIL: ${GRAMPSWEB_DEFAULT_FROM_EMAIL}
|
|
GRAMPSWEB_CELERY_CONFIG__broker_url: redis://gramps-redis:6379/0
|
|
GRAMPSWEB_CELERY_CONFIG__result_backend: redis://gramps-redis:6379/0
|
|
GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://gramps-redis:6379/1
|
|
volumes:
|
|
- ${PROJECT_ROOT}/apps/gramps/data/users:/app/users
|
|
- ${PROJECT_ROOT}/apps/gramps/data/index:/app/indexdir
|
|
- ${PROJECT_ROOT}/apps/gramps/data/thumbnail_cache:/app/thumbnail_cache
|
|
- ${PROJECT_ROOT}/apps/gramps/data/cache:/app/cache
|
|
- ${PROJECT_ROOT}/apps/gramps/data/secret:/app/secret
|
|
- ${PROJECT_ROOT}/apps/gramps/data/db:/root/.gramps/grampsdb
|
|
- ${PROJECT_ROOT}/apps/gramps/data/media:/app/media
|
|
- ${PROJECT_ROOT}/apps/gramps/data/tmp:/tmp
|
|
labels:
|
|
- "traefik.http.routers.gramps.rule=Host(`familytree.lan.ddnsgeek.com`)"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.gramps.entrypoints=websecure"
|
|
- "traefik.http.routers.gramps.tls.certresolver=myresolver"
|
|
- "io.portainer.accesscontrol.public"
|
|
- "traefik.http.services.gramps.loadbalancer.server.port=5000"
|
|
- "traefik.docker.network=core_traefik"
|
|
networks:
|
|
- traefik
|
|
- gramps
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- wget -qO- http://127.0.0.1:5000/ >/dev/null
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 6
|
|
start_period: 60s
|
|
|
|
grampsweb_celery:
|
|
profiles: ["apps","all","gramps"]
|
|
image: ghcr.io/gramps-project/grampsweb:latest
|
|
container_name: gramps-web-celery
|
|
command: celery -A gramps_webapi.celery worker --loglevel=INFO --concurrency=2
|
|
depends_on:
|
|
- gramps-redis
|
|
restart: always
|
|
env_file:
|
|
- ${SECRETS_ENV_FILE}
|
|
environment:
|
|
TZ: ${TZ}
|
|
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE}
|
|
GRAMPSWEB_BASE_URL: ${GRAMPSWEB_BASE_URL}
|
|
GRAMPSWEB_SECRET_KEY: ${GRAMPSWEB_SECRET_KEY}
|
|
GRAMPSWEB_REGISTRATION_DISABLED: ${GRAMPSWEB_REGISTRATION_DISABLED}
|
|
GRAMPSWEB_EMAIL_HOST: ${GRAMPSWEB_EMAIL_HOST}
|
|
GRAMPSWEB_EMAIL_PORT: ${GRAMPSWEB_EMAIL_PORT}
|
|
GRAMPSWEB_EMAIL_HOST_USER: ${GRAMPSWEB_EMAIL_HOST_USER}
|
|
GRAMPSWEB_EMAIL_HOST_PASSWORD: ${GRAMPSWEB_EMAIL_HOST_PASSWORD}
|
|
GRAMPSWEB_EMAIL_USE_SSL: ${GRAMPSWEB_EMAIL_USE_SSL}
|
|
GRAMPSWEB_EMAIL_USE_STARTTLS: ${GRAMPSWEB_EMAIL_USE_STARTTLS}
|
|
GRAMPSWEB_DEFAULT_FROM_EMAIL: ${GRAMPSWEB_DEFAULT_FROM_EMAIL}
|
|
GRAMPSWEB_CELERY_CONFIG__broker_url: redis://gramps-redis:6379/0
|
|
GRAMPSWEB_CELERY_CONFIG__result_backend: redis://gramps-redis:6379/0
|
|
GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://gramps-redis:6379/1
|
|
volumes:
|
|
- ${PROJECT_ROOT}/apps/gramps/data/users:/app/users
|
|
- ${PROJECT_ROOT}/apps/gramps/data/index:/app/indexdir
|
|
- ${PROJECT_ROOT}/apps/gramps/data/thumbnail_cache:/app/thumbnail_cache
|
|
- ${PROJECT_ROOT}/apps/gramps/data/cache:/app/cache
|
|
- ${PROJECT_ROOT}/apps/gramps/data/secret:/app/secret
|
|
- ${PROJECT_ROOT}/apps/gramps/data/db:/root/.gramps/grampsdb
|
|
- ${PROJECT_ROOT}/apps/gramps/data/media:/app/media
|
|
- ${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"]
|
|
image: valkey/valkey:8-alpine
|
|
container_name: gramps-redis
|
|
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:
|