-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.11 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
version: '3.8'
services:
research-app:
build:
context: .
dockerfile: Dockerfile
container_name: research-made-readable
ports:
- "8501:8501"
environment:
# Environment variables - create .env file with your API key
- ABACUSAI_API_KEY=${ABACUSAI_API_KEY}
# Optional: Override default Streamlit configuration
- STREAMLIT_SERVER_PORT=8501
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
- STREAMLIT_SERVER_HEADLESS=true
volumes:
# Mount data directory for persistence
- ./data:/app/data
# Mount logs directory for debugging
- ./logs:/app/logs
restart: unless-stopped
networks:
- research-network
depends_on: []
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
research-network:
driver: bridge
volumes:
# Named volumes for data persistence (alternative to bind mounts)
research-data:
driver: local
research-logs:
driver: local