services:
web:
image: myrepo/myapp:${IMAGE_TAG}
restart: always
deploy:
resources:
limits:
memory: 512M
logging:
driver: json-file
options:
max-size: "10m"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
retries: 3
read_only: true
tmpfs:
- /tmp