-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 892 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (27 loc) · 892 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
services:
finance-bro:
build: .
ports:
- "${STREAMLIT_SERVER_PORT:-8501}:8501"
environment:
# OpenAI API Key (required for AI analysis)
- OPENAI_API_KEY=${OPENAI_API_KEY}
# Vnstock API Key (optional - for higher rate limits and premium features)
- VNSTOCK_API_KEY=${VNSTOCK_API_KEY}
# Streamlit configuration
- STREAMLIT_SERVER_PORT=${STREAMLIT_SERVER_PORT:-8501}
- STREAMLIT_SERVER_ADDRESS=${STREAMLIT_SERVER_ADDRESS:-0.0.0.0}
volumes:
# Mount exports directory for persistent data
- ./exports:/app/exports
# Mount cache directory for persistent cache
- ./cache:/app/cache
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s