-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.23 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
version: '3.8'
services:
backend:
build: .
container_name: healthcare_backend
command: uvicorn backend.main:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
volumes:
- ./.env:/app/.env
- ./healthcare.db:/app/healthcare.db
- ./vector_store.pkl:/app/vector_store.pkl
- ./mlruns:/app/mlruns
- ./Datasets:/app/Datasets
- ./Testing:/app/Testing
- ./backend:/app/backend # Mount backend for live updates
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/" ]
interval: 30s
timeout: 10s
retries: 3
frontend:
build: .
container_name: healthcare_frontend
command: streamlit run frontend/main.py --server.port 8501 --server.address 0.0.0.0
ports:
- "8501:8501"
environment:
- BACKEND_URL=http://backend:8000
depends_on:
backend:
condition: service_healthy
volumes:
- ./.streamlit:/app/.streamlit
- ./frontend:/app/frontend # Mount frontend for live updates
mlflow:
build: .
container_name: healthcare_mlflow
command: mlflow ui --host 0.0.0.0 --port 5000
ports:
- "5000:5000"
volumes:
- ./mlruns:/app/mlruns
restart: always