-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
103 lines (99 loc) Β· 3.1 KB
/
docker-compose.dev.yaml
File metadata and controls
103 lines (99 loc) Β· 3.1 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: kodit-dev
services:
ollama:
image: ollama/ollama:latest
volumes:
- ${OLLAMA_MODELS:-ollama-models}:/root/.ollama
ports:
- "11434:11434"
healthcheck:
test: ["CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/localhost/11434"]
interval: 5s
timeout: 5s
retries: 10
profiles:
- ollama
# VectorChord PostgreSQL for migration smoke tests.
# Starts with a Python-era database dump loaded via /docker-entrypoint-initdb.d.
vectorchord:
image: tensorchord/vchord-suite:pg17-20250601
environment:
- POSTGRES_DB=kodit
- POSTGRES_PASSWORD=mysecretpassword
command: >
postgres
-c shared_preload_libraries=vchord,vchord_bm25,vector,pg_tokenizer
-c shared_buffers=32MB
-c work_mem=2MB
-c max_connections=50
-c max_worker_processes=2
-c maintenance_work_mem=32MB
-c effective_cache_size=256MB
volumes:
- ./test/smoke/testdata/kodit_dump.sql:/docker-entrypoint-initdb.d/01-dump.sql:ro
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d kodit"]
interval: 3s
timeout: 3s
retries: 10
profiles:
- vectorchord
ollama-pull:
image: ollama/ollama:latest
entrypoint: ["bash", "-c", "until ollama list >/dev/null 2>&1; do echo 'waiting for ollama...'; sleep 2; done && ollama pull qwen3:0.6b"]
environment:
- OLLAMA_HOST=http://host.docker.internal:11434
profiles:
- ollama
- kodit
extra_hosts:
- "host.docker.internal:host-gateway"
kodit:
build:
context: .
dockerfile: Dockerfile
target: dev
depends_on:
ollama-pull:
condition: service_completed_successfully
ports:
- "8080:8080"
healthcheck:
test:
[
"CMD",
"wget",
"-q",
"-O",
"/dev/null",
"http://localhost:8080/healthz",
]
interval: 6s
timeout: 0.5s
retries: 20
environment:
- DISABLE_TELEMETRY=true
# Use host.docker.internal for everything just in case the user has it running
# locally (e.g. ollama desktop)
- DB_URL=postgresql://postgres:mysecretpassword@host.docker.internal:5432/kodit
- ENRICHMENT_ENDPOINT_BASE_URL=${ENRICHMENT_ENDPOINT_BASE_URL:-http://host.docker.internal:11434/v1}
- ENRICHMENT_ENDPOINT_MODEL=${ENRICHMENT_ENDPOINT_MODEL:-qwen3:0.6b}
- ENRICHMENT_ENDPOINT_API_KEY=${ENRICHMENT_ENDPOINT_API_KEY:-ollama}
- ENRICHMENT_ENDPOINT_NUM_PARALLEL_TASKS=${ENRICHMENT_ENDPOINT_NUM_PARALLEL_TASKS:-3}
- ENRICHMENT_ENDPOINT_TIMEOUT=${ENRICHMENT_ENDPOINT_TIMEOUT:-300}
- 'ENRICHMENT_ENDPOINT_EXTRA_PARAMS=${ENRICHMENT_ENDPOINT_EXTRA_PARAMS:-{"extra_body": {"think": false, "options": {"num_predict": 200, "temperature": 0.7}}}}'
- LOG_LEVEL=INFO
- HTTP_CACHE_DIR=/kodit-data
profiles:
- kodit
volumes:
- .:/app
- ${KODIT_DIR:-kodit-data}:/kodit-data
- /tmp/kodit-smoke:/tmp/kodit-smoke
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
ollama-models:
kodit-data: