-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 802 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 802 Bytes
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
services:
db:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: triage
POSTGRES_PASSWORD: triage
POSTGRES_DB: triage
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U triage -d triage"]
interval: 5s
timeout: 5s
retries: 10
api:
build: .
env_file: .env
environment:
DATABASE_URL: postgresql+asyncpg://triage:triage@db:5432/triage
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
volumes:
# cache the embedding model between runs so it is downloaded only once
- hfcache:/root/.cache/huggingface
volumes:
pgdata:
hfcache: