added healthchecks and resource limits. Also changed a variable
This commit is contained in:
@@ -16,6 +16,14 @@ services:
|
||||
volumes:
|
||||
- pinchflat-app:/config
|
||||
- ${PINCHFLAT_DOWNLOAD}:/downloads
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl --fail http://localhost:${PORT}/healthcheck || exit 1"]
|
||||
interval: 30s
|
||||
start_period: 15s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user