-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
67 lines (60 loc) · 2.68 KB
/
Copy pathdocker-compose.example.yml
File metadata and controls
67 lines (60 loc) · 2.68 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# WARNING: Windows + Docker Desktop (WSL2) — NOT recommended.
# File I/O through Virtiofs/9P is 5-10x slower than native.
# Indexing and helpers will be significantly slower.
# Use pip install / Windows service instead. Docker is optimal for Linux.
services:
rlm:
build: .
ports:
- "${RLM_PORT:-9000}:9000"
volumes:
# Root of 1C repositories — mount read-only.
# Examples:
# Windows: - "D:/Repos/1c:/repos:ro"
# Linux: - "/home/user/repos:/repos:ro"
# Env var: - "${REPOS_ROOT:?Set REPOS_ROOT}:/repos:ro"
- "${REPOS_ROOT:?Set REPOS_ROOT to your 1C repos root}:/repos:ro"
# Config: projects.json, service.json, logs/ — survives container recreation
- rlm-config:/home/rlm/.config/rlm-tools-bsl
# Index cache (SQLite indexes) — survives container recreation
- rlm-index-cache:/home/rlm/.cache/rlm-tools-bsl
environment:
## === Package version ===
# Empty or "latest" — auto-update from PyPI on start.
# Specific version — pip install ==version, no PyPI check.
# - RLM_VERSION=latest
## === Path mapping (IMPORTANT for Docker) ===
## Translates host paths to container paths automatically.
## Without this, you must use container paths (/repos/...) when registering projects.
## With this, you can use host paths (D:/Repos/1c/...) — the server translates them.
## Format: "host_prefix:container_prefix". Pick ONE based on your OS:
# - RLM_PATH_MAP=D:/Repos/1c:/repos # Windows
# - RLM_PATH_MAP=/home/user/repos:/repos # Linux
## === Server ===
- RLM_TRANSPORT=streamable-http
- RLM_HOST=0.0.0.0
- RLM_PORT=9000
# - RLM_MAX_SESSIONS=5
# - RLM_SESSION_TIMEOUT=10
## === Indexes ===
# - RLM_INDEX_DIR=/home/rlm/.cache/rlm-tools-bsl
# - RLM_INDEX_MAX_AGE_DAYS=7
# Update indexes of registered projects on every container start.
# Off by default — on Windows/Virtiofs a no-op update can take minutes.
# Refresh on demand instead: rlm-bsl-index index update <path>.
# - RLM_UPDATE_INDEX_ON_START=1
# Best-effort git dirty-detect timeout (seconds, default 120). Raise
# further for very large repos on slow filesystems so detection finishes
# instead of falling back to a full scan.
# - RLM_GIT_DIRTY_TIMEOUT=180
## === LLM for llm_query() (optional) ===
# - RLM_LLM_BASE_URL=https://api.kilo.ai/api/gateway
# - RLM_LLM_API_KEY=your-api-key
# - RLM_LLM_MODEL=kilo-auto/free
# - ANTHROPIC_API_KEY=sk-ant-...
## === Debug ===
# - RLM_LOG_HELPERS=all
restart: unless-stopped
volumes:
rlm-config:
rlm-index-cache: