Repository navigation
Expand file tree
/
Copy pathdocker-compose.deploy.yml
More file actions
75 lines (71 loc) · 2 KB
/
Copy pathdocker-compose.deploy.yml
File metadata and controls
75 lines (71 loc) · 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
services:
postgres:
image: pgvector/pgvector:pg16
container_name: after-ai-postgres
environment:
POSTGRES_DB: after_ai_platform
POSTGRES_USER: after_ai
POSTGRES_PASSWORD: after_ai_password
ports:
- "5432:5432"
volumes:
- after_ai_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U after_ai -d after_ai_platform"]
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: after-ai-redis
ports:
- "6379:6379"
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: after-ai-backend
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
environment:
DATABASE_URL: postgresql://after_ai:after_ai_password@postgres:5432/after_ai_platform
REDIS_URL: redis://redis:6379/0
PYTHONUNBUFFERED: "1"
LLM_PROVIDER: ${LLM_PROVIDER:-local}
LLM_MODEL: ${LLM_MODEL:-local-template}
LLM_BASE_URL: ${LLM_BASE_URL:-}
LLM_API_KEY: ${LLM_API_KEY:-}
# Embedding / Hybrid Search
EMBEDDING_PROVIDER: ${EMBEDDING_PROVIDER:-local_hash}
EMBEDDING_MODEL: ${EMBEDDING_MODEL:-local-hash-384}
EMBEDDING_DIMENSION: ${EMBEDDING_DIMENSION:-384}
HYBRID_KEYWORD_WEIGHT: ${HYBRID_KEYWORD_WEIGHT:-0.55}
HYBRID_VECTOR_WEIGHT: ${HYBRID_VECTOR_WEIGHT:-0.45}
ports:
- "8000:8000"
volumes:
- ./backend/uploads:/app/uploads
command: >
sh -c "
alembic upgrade head &&
python scripts/seed_demo_data.py || true;
uvicorn app.main:app --host 0.0.0.0 --port 8000
"
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: after-ai-frontend
depends_on:
- backend
ports:
- "3000:80"
restart: unless-stopped
volumes:
after_ai_postgres_data: