Memory-Limits
This commit is contained in:
Executable
+28
@@ -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
|
||||
Reference in New Issue
Block a user