-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 1005 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (42 loc) · 1005 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
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.8'
services:
api:
build: .
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://docagent:docagent@postgres:5432/docagent
- REDIS_URL=redis://redis:6379
- GEMINI_API_KEY=${GEMINI_API_KEY}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITHUB_MODEL=${GITHUB_MODEL:-gpt-4o-mini}
- LLM_PROVIDER=${LLM_PROVIDER:-auto}
depends_on:
- postgres
- redis
command: uvicorn api.main:app --host 0.0.0.0 --port 8000
ui:
build: .
ports:
- "8501:8501"
environment:
- API_URL=http://api:8000
depends_on:
- api
command: streamlit run ui/app.py --server.address 0.0.0.0
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: docagent
POSTGRES_USER: docagent
POSTGRES_PASSWORD: docagent
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
pgdata: