-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 994 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 994 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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: medify-backend
ports:
- "8000:8000"
environment:
# Paths
- DOSAGE_FILE_PATH=/app/backend/datasets/dosage.csv
# API Keys (Reads from your local .env file)
- GENAI_API_KEY=${GENAI_API_KEY}
- GEMINI_MODEL_ID=${GEMINI_MODEL_ID}
- GCP_SERVICE_ACCOUNT_JSON=${GCP_SERVICE_ACCOUNT_JSON}
volumes:
# Optional: Hot-reloading locally
- ./backend:/app/backend:cached
restart: unless-stopped
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
container_name: medify-frontend
ports:
- "8501:8501"
environment:
# Points internally to the backend container via Docker's DNS
- FAST_API_URL=http://backend:8000
volumes:
# Optional: Hot-reloading locally
- ./frontend:/app/frontend:cached
depends_on:
- backend
restart: unless-stopped