-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
62 lines (57 loc) · 1.52 KB
/
compose.yaml
File metadata and controls
62 lines (57 loc) · 1.52 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
# Docker Compose v2 format (no "version:" key)
services:
postgres:
image: pgvector/pgvector:0.8.0-pg16
environment:
POSTGRES_DB: convolens
POSTGRES_USER: convolens
POSTGRES_PASSWORD: convolens
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U convolens -d convolens"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
backend:
build:
context: .
dockerfile: Dockerfile.backend
environment:
DATABASE_URL: postgresql+psycopg://convolens:convolens@postgres:5432/convolens
GEMINI_API_KEY: ${GEMINI_API_KEY}
PHOENIX_COLLECTOR_ENDPOINT: ${PHOENIX_COLLECTOR_ENDPOINT:-}
PYTHONPATH: /app
volumes:
- ./data:/app/data
- ./config.toml:/app/config.toml:ro
- ./convolens:/app/convolens:ro
- ./alembic:/app/alembic:ro
depends_on:
postgres:
condition: service_healthy
ports:
- "8000:8000"
command: ["sh", "-c", "alembic upgrade head && uvicorn convolens.api.main:app --host 0.0.0.0 --port 8000 --proxy-headers --reload --reload-dir /app/convolens"]
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "80:80"
depends_on:
- backend
phoenix:
image: arizephoenix/phoenix:latest
profiles: [tracing]
ports:
- "6006:6006"
- "4317:4317"
volumes:
- phoenix_data:/phoenix_data
volumes:
postgres_data:
phoenix_data: