Memory-Limits

This commit is contained in:
2026-04-09 00:15:01 +02:00
parent c4005e0e4e
commit e4a0a91a91
23 changed files with 899 additions and 20 deletions
+28
View File
@@ -0,0 +1,28 @@
services:
grampsweb:
image: ghcr.io/gramps-project/grampsweb:latest
container_name: Gramps-Web
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/5000' || exit 1
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
mem_limit: 512m
mem_reservation: 512m
security_opt:
- no-new-privileges:true
ports:
- 5449:5000
environment:
GRAMPSWEB_TREE: Michael's Tree #This env variable will create a new tree if not exists.
volumes:
- /volume1/docker/grampsweb/dbuser:/app/users:rw
- /volume1/docker/grampsweb/indexdir:/app/indexdir:rw
- /volume1/docker/grampsweb/thumbnail:/app/thumbnail_cache:rw
- /volume1/docker/grampsweb/cache:/app/cache:rw
- /volume1/docker/grampsweb/secret:/app/secret:rw
- /volume1/docker/grampsweb/database:/root/.gramps/grampsdb:rw
- /volume1/docker/grampsweb/media:/app/media:rw
- /volume1/docker/grampsweb/tmp:/tmp:rw
restart: on-failure:5