Files
svelte-mud/docker-compose.yml

34 lines
939 B
YAML
Raw Normal View History

2025-04-21 14:12:36 +02:00
version: '3.8'
services:
svelte-mud:
build:
context: .
dockerfile: Dockerfile
container_name: svelte-mud
restart: unless-stopped
2025-04-21 22:42:26 +02:00
# We don't need to publish ports to the host if we're using a reverse proxy
# ports:
# - "3005:3000" # Unified server (web + WebSocket)
networks:
2025-04-21 22:49:26 +02:00
- revproxy
2025-04-21 14:12:36 +02:00
environment:
- NODE_ENV=production
2025-04-21 22:18:23 +02:00
# Optional: You can set a custom port
# - PORT=3000
2025-04-21 14:12:36 +02:00
# 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
2025-04-21 22:42:26 +02:00
- /app/node_modules # Don't mount local node_modules
# Define networks to connect to external services
networks:
2025-04-21 22:49:26 +02:00
revproxy:
2025-04-21 22:42:26 +02:00
external: true