-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.55 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
# Loki Mode Docker Compose (v6.73.1)
# Usage: docker-compose run loki start
# Note: version key removed - deprecated in Docker Compose v2+
services:
loki:
build: .
image: loki-mode:latest
volumes:
# Mount current directory as workspace
- .:/workspace:rw
# Share git config for commits
- ~/.gitconfig:/home/loki/.gitconfig:ro
# Share SSH keys for git operations
- ~/.ssh:/home/loki/.ssh:ro
# Share GitHub CLI auth
- ~/.config/gh:/home/loki/.config/gh:ro
environment:
# Loki Mode configuration
- LOKI_NOTIFICATIONS=false # No desktop notifications in container
- LOKI_DASHBOARD=true
- LOKI_DASHBOARD_PORT=57374
- LOKI_CHROMA_HOST=chroma
- LOKI_CHROMA_PORT=8000
# Pass through GitHub token if set
- GITHUB_TOKEN
- GH_TOKEN
ports:
# Expose dashboard
- "57374:57374"
# BUG-DK-002: Health check for dashboard API when running
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:57374/health >/dev/null 2>&1 || loki version >/dev/null 2>&1"]
interval: 30s
timeout: 10s
start-period: 10s
retries: 3
working_dir: /workspace
stdin_open: true
tty: true
chroma:
image: chromadb/chroma:latest
profiles: ["search"]
volumes:
- chroma-data:/chroma/chroma
ports:
- "8100:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v2/heartbeat"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
volumes:
chroma-data: