Initial commit
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
svelte-mud:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: svelte-mud
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000" # Web server
|
||||
- "3001:3001" # WebSocket server
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
# Optional: You can override the WebSocket port if needed
|
||||
# - WS_PORT=3001
|
||||
# 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
|
||||
Reference in New Issue
Block a user