Added healthcheck and resource limits

This commit is contained in:
2026-04-26 23:18:22 -07:00
parent a80b5b9299
commit fe151bccbf
+9
View File
@@ -11,4 +11,13 @@ services:
volumes: volumes:
- /home/${HOMEPAGE_USERNAME}/homepage/config:/app/config - /home/${HOMEPAGE_USERNAME}/homepage/config:/app/config
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/healthcheck || exit 1"]
interval: 10s
timeout: 3s
start_period: 20s
deploy:
resources:
limits:
memory: 512m
restart: unless-stopped restart: unless-stopped