Files
svelte-mud/docker-compose.yml
2025-04-21 22:18:23 +02:00

26 lines
732 B
YAML

version: '3.8'
services:
svelte-mud:
build:
context: .
dockerfile: Dockerfile
container_name: svelte-mud
restart: unless-stopped
ports:
- "3000:3000" # Unified server (web + WebSocket)
environment:
- NODE_ENV=production
# Optional: You can set a custom port
# - PORT=3000
# Uncomment for adding custom healthcheck
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s
volumes:
# Optional: Add persistent volumes if needed
# - ./logs:/app/logs
- /app/node_modules # Don't mount local node_modules