30 lines
797 B
YAML
30 lines
797 B
YAML
services:
|
|
steam-chat:
|
|
image: ${STEAM_CHAT_IMAGE:-ghcr.io/tursom/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
|