-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 857 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (34 loc) · 857 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
version: '3.8'
services:
bioactivity-app:
build: .
ports:
- "8501:8501"
volumes:
- ./data:/app/data
- ./models:/app/models
- ./logs:/app/logs
environment:
- PYTHONPATH=/app
- STREAMLIT_SERVER_PORT=8501
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Add database service for production
# postgres:
# image: postgres:13
# environment:
# POSTGRES_DB: bioactivity
# POSTGRES_USER: bioactivity_user
# POSTGRES_PASSWORD: bioactivity_pass
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# volumes:
# postgres_data: