-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 855 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 855 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
version: "3.9"
services:
redis:
image: redis:7-alpine
container_name: thy-redis
ports:
- "6379:6379"
api:
build: .
container_name: thy-api
env_file: .env
environment:
REDIS_URL: redis://redis:6379
RETRIEVER_SEED_JSONL: ./app/data/approved_seeds.jsonl
depends_on:
- redis
volumes:
- ./:/app
command: >
bash -lc "uvicorn app.api.main:app --host 0.0.0.0 --port 8000 --reload"
ports:
- "8000:8000"
ui:
build: .
container_name: thy-ui
env_file: .env
environment:
API_BASE_URL: http://api:8000
STREAMLIT_BROWSER_GATHER_USAGE_STATS: "false"
depends_on:
- api
volumes:
- ./:/app
command: >
bash -lc "streamlit run ui/streamlit_app.py --server.port 8501 --server.address 0.0.0.0"
ports:
- "8501:8501"