Unified server for docker
This commit is contained in:
@@ -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/"]
|
||||
|
||||
Reference in New Issue
Block a user