-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (45 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
53 lines (45 loc) · 2.04 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
services:
meshmonitor:
# Option 1: Use pre-built image from GitHub Container Registry (recommended)
image: ghcr.io/yeraze/meshmonitor:latest
# Option 2: Build locally (comment out 'image' above and uncomment below for development)
# build:
# context: .
# dockerfile: Dockerfile
# Auto-Upgrade: To enable automatic upgrades through the UI, use:
# docker compose -f docker-compose.yml -f docker-compose.upgrade.yml up -d
# See docs/configuration/auto-upgrade.md for details
container_name: meshmonitor
ports:
- "8080:3001"
- "1883:1883" # Embedded MQTT broker (issue #3003). Comment out if unused
# or if the host already has an MQTT broker on 1883.
restart: unless-stopped
volumes:
- meshmonitor-data:/data
env_file: .env
environment:
# Minimal configuration for http://localhost:8080
- NODE_ENV=development # Use development mode for simple HTTP deployments
- TZ=America/New_York
- ALLOWED_ORIGINS=http://localhost:8080 # Required for CORS
# OPTIONAL: Uncomment and configure for production deployments
# See docs/configuration/production.md for full production setup guide
# For production with HTTPS reverse proxy (nginx, Caddy, Traefik):
# - NODE_ENV=production
# - SESSION_SECRET=your-generated-secret-here # Required in production
# - TRUST_PROXY=true
# - ALLOWED_ORIGINS=https://yourdomain.com
# For production with direct HTTP (not recommended):
# - NODE_ENV=production
# - SESSION_SECRET=your-generated-secret-here # Required in production
# - COOKIE_SECURE=false
# DISASTER RECOVERY: Restore from system backup
# To restore from a backup on container startup, set RESTORE_FROM_BACKUP
# to the backup directory name (e.g., 2025-11-08_151637)
# Backups must be in /data/system-backups/ directory
# See docs/operations/disaster-recovery.md for details
# - RESTORE_FROM_BACKUP=2025-11-08_151637
volumes:
meshmonitor-data:
driver: local