mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-10-05 02:13:50 +00:00
20 lines
679 B
YAML
20 lines
679 B
YAML
services:
|
|
wheelofnames:
|
|
build: .
|
|
environment:
|
|
NODE_ENV: "${NODE_ENV:-production}"
|
|
HOST: "${HOST:-0.0.0.0}"
|
|
PORT: "${PORT:-3000}"
|
|
API_TOKEN: "${API_TOKEN:-change-me}"
|
|
MAX_CONCURRENT_RENDERS: "${MAX_CONCURRENT_RENDERS:-1}"
|
|
RENDER_TIMEOUT_MS: "${RENDER_TIMEOUT_MS:-15000}"
|
|
MAX_OPTIONS: "${MAX_OPTIONS:-32}"
|
|
MAX_OPTION_CHARS: "${MAX_OPTION_CHARS:-40}"
|
|
ports:
|
|
- "${PORT:-3000}:${PORT:-3000}"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:${PORT:-3000}/api/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|