-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.12 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
version: "3.8"
services:
streamlit_app:
build: .
container_name: sentiment-streamlit
ports:
- "8501:8501"
environment:
- ENTRYPOINT_MODE=streamlit
- SQLITE_DB_PATH=/app/database/sentiment_logs.db
volumes:
- dataset_volume:/app/dataset
- output_volume:/app/output
- ./output/database:/app/database
fastapi_app:
build: .
container_name: sentiment-api
ports:
- "8000:8000"
environment:
- ENTRYPOINT_MODE=api
- SQLITE_DB_PATH=/app/database/sentiment_logs.db
volumes:
- dataset_volume:/app/dataset
- output_volume:/app/output
- ./output/database:/app/database
cli_app:
build: .
container_name: sentiment-cli
environment:
- ENTRYPOINT_MODE=cli
- SQLITE_DB_PATH=/app/database/sentiment_logs.db
command: ["I love this product!"]
volumes:
- dataset_volume:/app/dataset
- output_volume:/app/output
- ./output/database:/app/database
volumes:
dataset_volume:
output_volume:
sqlite_db:
external: true # Set this as an external volume so it's mapped to the local system