mermaid-server/docker-compose.yml

21 lines
625 B
YAML

version: "3.8"
services:
mermaid-server:
build: .
container_name: mermaid-server
ports:
- "7000:80" # Map host port 7000 to container port 80
volumes:
- ./in:/root/in # optional: persist input for caching
- ./out:/root/out # optional: persist output for debugging
environment:
ALLOW_ALL_ORIGINS: "true"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/generate?data=graph%20TD%0A%20%20%20%20A%5BTest%5D"]
interval: 30s
timeout: 10s
start_period: 5s
retries: 3