Added healthcheck and resource limits
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user