Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.79 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
# The deployment shape the README describes but the default configuration does
# not exercise: the service against a real Qdrant rather than the embedded one.
#
# docker compose up --build # API on :8000, Qdrant on :6333
# docker compose run --rm ops-recall demo
#
# Set ANTHROPIC_API_KEY in the environment (or a .env file beside this one) to
# switch the narrative from the deterministic assembler to the model.
services:
qdrant:
image: qdrant/qdrant:v1.12.4
ports:
- "6333:6333"
volumes:
- qdrant-storage:/qdrant/storage
healthcheck:
# Qdrant's image has no curl or wget; its own binary can answer.
test: ["CMD", "/qdrant/qdrant", "--version"]
interval: 10s
timeout: 3s
retries: 5
ops-recall:
build: .
ports:
- "8000:8000"
depends_on:
qdrant:
condition: service_healthy
environment:
# Payload indexes are created on first use, so pointing at a cluster is
# the only change needed -- see config.qdrant_location().
OPS_RECALL_QDRANT_URL: http://qdrant:6333
# No credentials in the image: without a key the service falls back to
# the template reconstructor and says so in every response.
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
OPS_RECALL_REASONER: ${OPS_RECALL_REASONER:-claude}
# Unset means the API is open -- fine on a laptop, not once this is
# published anywhere. See the Authentication section of the README.
OPS_RECALL_API_KEYS: ${OPS_RECALL_API_KEYS:-[]}
OPS_RECALL_ADMIN_API_KEYS: ${OPS_RECALL_ADMIN_API_KEYS:-[]}
OPS_RECALL_PAGERDUTY_WEBHOOK_SECRETS: ${OPS_RECALL_PAGERDUTY_WEBHOOK_SECRETS:-[]}
volumes:
# Mount your own archive over the bundled seed corpus to index it.
- ./data:/app/data:ro
volumes:
qdrant-storage: