-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (88 loc) · 2.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (88 loc) · 2.2 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
services:
app:
build: .
container_name: lattia_app
environment:
DATABASE_URL: postgresql+psycopg2://postgres:postgres@db:5432/lattia
HF_HOME: /opt/huggingface
QDRANT_URL: http://qdrant:6333
QDRANT_COLLECTION: health_questions
DATA_FILE: /usr/app/src/lattia/static/health_questions.fr.json
QDRANT_GRPC_PORT: "6334" # make port explicit
QDRANT_TIMEOUT: "30" # seconds
ports:
- "8000:8000"
volumes:
- ./src:/usr/app/src
- ./data:/usr/app/data
- hf_cache:/opt/huggingface
env_file:
- path: ./.env
required: true
depends_on:
db:
condition: service_healthy
ingest:
condition: service_completed_successfully
ingest:
build: .
container_name: lattia_ingest
environment:
QDRANT_URL: http://qdrant:6333
QDRANT_COLLECTION: health_questions
EMBEDDING_MODEL: text-embedding-3-small
DATA_FILE: /usr/app/data/health_questions.fr.json
QDRANT_GRPC_PORT: "6334"
QDRANT_TIMEOUT: "30"
volumes:
- ./src:/usr/app/src
- ./data:/usr/app/data
env_file:
- path: ./.env
required: true
depends_on:
qdrant:
condition: service_started
command: ["python", "-m", "lattia.core.vector_db.ingest"]
restart: "no"
qdrant:
image: qdrant/qdrant:v1.15.3
container_name: lattia_qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_storage:/qdrant/storage
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:6333/readyz || exit 1"]
interval: 5s
timeout: 3s
retries: 30
db:
image: postgres:16-alpine
container_name: lattia_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lattia
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d lattia"]
interval: 5s
timeout: 5s
retries: 10
adminer:
image: adminer
container_name: lattia_adminer
restart: always
ports:
- "8080:8080"
depends_on:
- db
volumes:
pgdata:
hf_cache:
qdrant_storage: