Repository navigation
Expand file tree
/
Copy pathdocker-compose.simple.yml
More file actions
66 lines (56 loc) · 1.64 KB
/
Copy pathdocker-compose.simple.yml
File metadata and controls
66 lines (56 loc) · 1.64 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
streamlit-dashboard-simple:
build:
context: .
dockerfile: Dockerfile.simple
container_name: sql-server-dashboard-simple
ports:
- "8503:8501" # Different port for simple environment
environment:
# TEST MODE - No SQL Server or Entra ID required
- TEST_MODE=true
# Streamlit Configuration
- STREAMLIT_SERVER_PORT=8501
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
- STREAMLIT_SERVER_HEADLESS=true
- STREAMLIT_SERVER_ENABLE_CORS=true
- STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
volumes:
# Mount test configuration and dummy data
- ./test_data:/app/test_data:ro
# Mount cache directory for persistent target hours (test data)
- ./cache:/app/cache
# Mount logs directory
- ./logs:/app/logs
networks:
- simple-dashboard-network
restart: unless-stopped
# Resource limits (reduced for test environment)
deploy:
resources:
limits:
memory: 512M
cpus: '0.3'
reservations:
memory: 256M
cpus: '0.1'
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# Labels for easy identification
labels:
- "environment=test"
- "purpose=demo"
- "project=sql-server-dashboard"
- "type=simplified"
networks:
simple-dashboard-network:
driver: bridge
labels:
- "environment=test"
- "type=simplified"