-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.83 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.83 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
# One-command self-host: `docker compose up`.
#
# postgres backs the control plane (tenants, api keys, jobs, webhook dedup)
# and episodic memory (dated decision events, past /why queries). Qdrant backs
# semantic memory. Both run here; nothing needs an account anywhere.
#
# Tracing is opt-in and separate:
# docker compose -f docker-compose.yml -f docker-compose.langfuse.yml up
# so the default `up` stays a three-service stack.
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: lore
POSTGRES_PASSWORD: lore
POSTGRES_DB: lore
ports:
- "5432:5432"
volumes:
- lore_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lore"]
interval: 5s
timeout: 5s
retries: 10
qdrant:
image: qdrant/qdrant:v1.11.0
ports:
- "6333:6333"
volumes:
- lore_qdrant_data:/qdrant/storage
healthcheck:
# No curl/wget in the image — use the shell's own TCP redirection.
test: ["CMD-SHELL", "timeout 2 bash -c '</dev/tcp/localhost/6333' || exit 1"]
interval: 10s
timeout: 5s
retries: 10
backend:
build: .
env_file: .env
environment:
DATABASE_URL: postgresql://lore:lore@postgres:5432/lore
QDRANT_URL: http://qdrant:6333
PORT: 8080
ports:
- "8000:8080"
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_started
worker:
build: .
env_file: .env
environment:
DATABASE_URL: postgresql://lore:lore@postgres:5432/lore
QDRANT_URL: http://qdrant:6333
command: ["python", "-m", "lore_backend.jobs.worker"]
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_started
volumes:
lore_postgres_data:
lore_qdrant_data: