| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- version: "3.7"
- services:
- grampsweb: &grampsweb
- image: ghcr.io/gramps-project/grampsweb:latest
- restart: unless-stopped
- ports:
- - "80: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
- 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
- networks:
- - asgard
- 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
- networks:
- - asgard
- grampsweb_redis:
- image: redis:alpine
- container_name: grampsweb_redis
- restart: unless-stopped
- networks:
- - asgard
- volumes:
- gramps_users:
- gramps_index:
- gramps_thumb_cache:
- gramps_cache:
- gramps_secret:
- gramps_db:
- gramps_media:
- gramps_tmp:
- networks:
- asgard:
- name: asgard
- external: true
|