More docker compose updates
This commit is contained in:
@@ -7,8 +7,11 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
container_name: svelte-mud
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000" # Unified server (web + WebSocket)
|
||||
# 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:
|
||||
- rev_proxy
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
# Optional: You can set a custom port
|
||||
@@ -24,3 +27,8 @@ services:
|
||||
# Optional: Add persistent volumes if needed
|
||||
# - ./logs:/app/logs
|
||||
- /app/node_modules # Don't mount local node_modules
|
||||
|
||||
# Define networks to connect to external services
|
||||
networks:
|
||||
rev_proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user