added healthchecks and resource limits. Also changed a variable
This commit is contained in:
1 parent
80f173ebc5
commit
44c1de67cd
2 files changed
+9
-1
No files matched your search
@@ -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