Unified server for docker

This commit is contained in:
2025-04-21 22:18:23 +02:00
parent 32dd6ff811
commit 2bfd1b100e
5 changed files with 233 additions and 14 deletions

View File

@@ -8,12 +8,11 @@ services:
container_name: svelte-mud
restart: unless-stopped
ports:
- "3000:3000" # Web server
- "3001:3001" # WebSocket server
- "3000:3000" # Unified server (web + WebSocket)
environment:
- NODE_ENV=production
# Optional: You can override the WebSocket port if needed
# - WS_PORT=3001
# 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/"]