Production Deployment Overview¶
This page gives you the high-level production deployment model for PowerBeacon before you choose a specific installation method.
PowerBeacon is designed as a control plane plus execution plane:
- Control plane: frontend + backend + database
- Execution plane: one or more LAN-adjacent agents that send Wake-on-LAN packets
Recommended Production Pattern¶
For most teams, the most reliable pattern is:
- Run frontend, backend, and PostgreSQL on your server infrastructure.
- Deploy at least one agent per target LAN/subnet.
- Associate devices with one or more agents for redundancy.
Do not bypass the agent
Keep Wake-on-LAN dispatch in the agent layer. The backend should orchestrate wake actions, not emit LAN magic packets directly.
Topology At A Glance¶
flowchart LR
U[Operator Browser] --> F[Frontend]
F --> B[Backend API]
B --> D[(PostgreSQL)]
B -->|POST /wol + bearer token| A1[Agent - Site A]
B -->|POST /wol + bearer token| A2[Agent - Site B]
A1 -->|UDP Broadcast| S1[Devices on LAN A]
A2 -->|UDP Broadcast| S2[Devices on LAN B]
style B fill:#1d4ed8,stroke:#1e3a8a,color:#fff
style A1 fill:#0f766e,stroke:#134e4a,color:#fff
style A2 fill:#0f766e,stroke:#134e4a,color:#fff
style D fill:#7c2d12,stroke:#431407,color:#fff
Environment And Network Requirements¶
- HTTPS termination in front of frontend and backend
- Strong, unique values for secrets (especially
JWT_SECRETand database credentials) - Reachable backend API from all deployed agents
- Outbound internet access for image/package retrieval during installation
- Inbound connectivity for user access to frontend/backend entrypoints
For Wake-on-LAN reliability:
- Place agents on hosts with direct LAN access to sleeping devices
- Prefer host-installed agents on Windows/macOS environments using Docker Desktop
- Run multiple agents for high-value devices across critical subnets
Docker Desktop reminder
On Windows and macOS, container-originated LAN broadcasts are often unreliable. Keep agents on LAN hosts and let the backend dispatch through them.
Security Baseline¶
Minimum production security posture:
- Use non-default secrets and rotate them regularly.
- Restrict CORS origins to known frontend URLs.
- Use HTTPS for user-facing routes and any remote agent-to-backend traffic.
- Protect PostgreSQL network exposure (private network, firewall rules).
- Monitor agent registration and heartbeat status for unexpected changes.
Rollout Checklist¶
- Prepare
.envwith production values. - Deploy control-plane services (frontend, backend, database).
- Complete initial setup and admin bootstrap.
- Install and register agents on target LANs.
- Associate agents with devices/clusters.
- Validate wake flow with a test device per subnet.
- Add backups, logging, and alerting.
Scaling Guidance¶
- Scale horizontally by adding agents close to each subnet.
- Associate important devices with multiple agents for better wake success.
- Keep backend and database resources sized for expected API and heartbeat load.
- Segment by clusters to keep operational boundaries clear.
Next Steps¶
- For containerized deployment instructions, continue with Docker Deployment.
- For architecture deep dive, see Architecture Overview.
- For day-2 practices, continue to Operations.