-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 824 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
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/code/backend:cached
- ./datasets/dosage.csv:/code/datasets/dosage.csv:cached
environment:
- DOSAGE_FILE_PATH=/code/datasets/dosage.csv
- GENAI_API_KEY=${GENAI_API_KEY}
- GEMINI_MODEL_ID=${GEMINI_MODEL_ID}
working_dir: /code/backend
command: uvicorn main:app --host 0.0.0.0 --port 8000
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
ports:
- "8501:8501"
volumes:
- ./frontend:/app/frontend:cached
- ./datasets:/app/datasets:cached
environment:
- FAST_API_URL=http://backend:8000
- GCP_SERVICE_ACCOUNT_JSON=${GCP_SERVICE_ACCOUNT_JSON}
depends_on:
- backend