-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 911 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 911 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
services:
# FastAPI Service
api:
build: .
container_name: bosch-quality-api
ports:
- "8080:8000"
volumes:
- ./data:/app/data
- ./models:/app/models
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
environment:
- PYTHONUNBUFFERED=1
networks:
- bosch-network
restart: unless-stopped
# Streamlit UI Service
ui:
build: .
container_name: bosch-quality-ui
ports:
- "8501:8501"
volumes:
- ./data:/app/data
- ./models:/app/models
- ./.streamlit:/app/.streamlit
command: streamlit run app/ui.py --server.port 8501 --server.address 0.0.0.0 --server.maxUploadSize 500
environment:
- PYTHONUNBUFFERED=1
networks:
- bosch-network
restart: unless-stopped
depends_on:
- api
networks:
bosch-network:
driver: bridge