-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.1 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
version: '3.8'
services:
webstatus:
build:
context: .
dockerfile: Dockerfile
container_name: webstatus
restart: unless-stopped
ports:
- "8000:8000"
volumes:
# Persist database
- ./data:/app/data
# Persist logs
- ./logs:/app/logs
# Persist configuration
- ./config.json:/app/config.json
# Persist sounds (includes custom uploads, library, and system sounds)
- ./sounds:/app/sounds
environment:
- TZ=America/New_York # Change to your timezone
- PYTHONUNBUFFERED=1
# Feature Flags - Control feature availability
- ENABLE_DISCOVERY=true # Enable network discovery feature (default: true for self-hosted)
# Password reset - set ADMIN_PASSWORD in .env to reset admin password
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-}
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/api/v1/status', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- monitoring
networks:
monitoring:
driver: bridge