-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.74 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
# Local-development stack: agent-git-http + ollama.
#
# Brings up agent-git-http bound to 127.0.0.1:9876 with an ollama sibling
# serving nomic-embed-text on 127.0.0.1:11434. Good enough to drive the
# bake-off harness under benchmarks/, the Python bindings, and any
# client SDK locally.
#
# docker compose up --build
# curl http://127.0.0.1:9876/v1/healthz
#
# The `agent-git-data` named volume survives `docker compose down`. Drop it
# with `docker compose down -v` if you want a clean repo state.
#
# For the full competitor bake-off (agent-git + bm25 + chroma + mem0 +
# llamaindex + ...), follow the recipes in
# docs/benchmarks/COMPETITOR-REPRODUCE.md - each competitor has a
# standalone Docker build invocation so you only spin up what you need.
services:
agent-git-http:
build:
context: .
dockerfile: Dockerfile
args:
FEATURES: ""
image: agent-git-http:dev
container_name: agent-git-http
ports:
- "127.0.0.1:9876:9876"
volumes:
- agent-git-data:/data
- agent-git-models:/models
environment:
# Point the server at the ollama sibling for auto-embed.
# The config.toml at /data/.agent-git/ takes priority when present.
RUST_LOG: info,agent-git_http=debug
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
ollama:
image: ollama/ollama:latest
container_name: agent-git-ollama
ports:
- "127.0.0.1:11434:11434"
volumes:
- ollama-models:/root/.ollama
healthcheck:
test: ["CMD-SHELL", "ollama list >/dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
restart: unless-stopped
volumes:
agent-git-data:
agent-git-models:
ollama-models: