重写后台前端入口
This commit is contained in:
29
docker-compose.yaml
Normal file
29
docker-compose.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
steam-chat:
|
||||
image: ${STEAM_CHAT_IMAGE:-steam-chat:latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: ${STEAM_CHAT_CONTAINER_NAME:-steam-chat}
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
ports:
|
||||
- "${STEAM_CHAT_BIND:-0.0.0.0}:${STEAM_CHAT_PORT:-3000}:3000"
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
STEAM_CHAT_DATA_DIR: /app/data
|
||||
STEAM_CHAT_HOST: 0.0.0.0
|
||||
STEAM_CHAT_PORT: 3000
|
||||
STEAM_CHAT_WS_PATH: /ws
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- node
|
||||
- -e
|
||||
- "fetch('http://127.0.0.1:3000/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
Reference in New Issue
Block a user