-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 902 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 902 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
40
services:
init-data:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
- ./data/chromadb:/data/chromadb
environment:
- PYTHONUNBUFFERED=1
- DATA_PATH=/data/chromadb
command: python -m stac_search.load
env_file:
- .env
app:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- ./data/chromadb:/data/chromadb
environment:
- PYTHONUNBUFFERED=1
- DATA_PATH=/data/chromadb
env_file:
- .env
command: uvicorn stac_search.api:app --host 0.0.0.0 --port 8000 --reload
depends_on:
init-data:
condition: service_completed_successfully
streamlit:
build:
context: frontend
dockerfile: Dockerfile
ports:
- "18501:8501"
environment:
- API_URL=http://app:8000
volumes:
- ./frontend/streamlit_app.py:/app/streamlit_app.py