Updated some of the configs and added limits
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
services:
|
||||
drawio:
|
||||
app:
|
||||
image: jgraph/drawio:latest
|
||||
container_name: drawio
|
||||
ports:
|
||||
- ${DRAWIO_PORT}:8080
|
||||
environment:
|
||||
- DRAWIO_SELF_CONTAINED=${DRAWIO_SELF_CONTAINED:-0}
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/ || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512m
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user