-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·38 lines (37 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·38 lines (37 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
lonicera:
# To use a published image later, replace this with: image: ghcr.io/billwang0101/lonicera:latest
build:
context: .
args:
NPM_REGISTRY: ${NPM_REGISTRY:-}
container_name: lonicera
ports:
- '2026:2026'
volumes:
- lonicera-data:/app/data
- ${SOLVER_DATA_DIR:-./data/solver/trees}:/app/data/solver/trees:ro
- ${SOLVER_ROOT_CACHE_DIR:-./.cache/solver-root-runtime}:/app/solver-root-cache:ro
environment:
- PORT=2026
- HOST=0.0.0.0
- SAVE_DIR=/app/data
- LOG_LEVEL=info
- SOLVER_DATA_DIR=/app/data/solver/trees
- SOLVER_ROOT_CACHE_DIR=/app/solver-root-cache
- NPC_MODEL_ENABLED=${NPC_MODEL_ENABLED:-off}
- NPC_MODEL_URL=${NPC_MODEL_URL:-http://127.0.0.1:8900}
- NPC_MODEL_TIMEOUT_MS=${NPC_MODEL_TIMEOUT_MS:-800}
- NPC_MODEL_MIN_CONFIDENCE=${NPC_MODEL_MIN_CONFIDENCE:-0.18}
# Lower this on small NAS devices, or set PREFLOP_TABLE=off to skip startup precompute.
- PREFLOP_TABLE=on
- PREFLOP_SIMS=10000
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '-qO-', 'http://127.0.0.1:2026/api/status']
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
lonicera-data: