-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 868 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 868 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
services:
githubhero-api:
build:
context: . # Use root so ../ references work
dockerfile: api/Dockerfile # Point to the backend's Dockerfile
container_name: githubhero-api
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./githubhero:/app/githubhero
- ./api:/app/api
- .env:/app/.env
environment:
- PYTHONPATH=/app
githubhero-ui:
build:
context: . # Same: from root
dockerfile: streamlit/Dockerfile # UI service Dockerfile
container_name: githubhero-ui
env_file:
- .env
ports:
- "8501:8501"
- "5678:5678"
depends_on:
- githubhero-api
volumes:
- ./githubhero:/app/githubhero
- ./streamlit:/app/streamlit
- .env:/app/.env
environment:
- PYTHONPATH=/app
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false