Skip to content

Production Deployment ​

Scaling HotPlex to Enterprise Grade ​

Moving from local development to a production-grade deployment requires a focus on Reliability, Scalability, and Security. This guide outlines the best practices for deploying HotPlex in a professional environment.


Deployment Strategies ​

The official hotplex Docker image is the preferred way to deploy. It is optimized for size and security.

bash
docker pull hrygo/hotplex:latest
docker run -p 8080:8080 -v ./config:/etc/hotplex -e HOTPLEX_STATE_DB=postgres://...

2. ☸️ Kubernetes ​

For large-scale deployments, use our official Helm Chart. This provides built-in:

  • High Availability: Multi-replica deployments with leader election.
  • Auto-scaling: Scale workers based on message throughput.
  • Ingress Management: Automated SSL termination and routing.

Hardening Your Instance ​

In production, security is paramount:

  • External State Stores: Move away from in-memory or SQLite. Use PostgreSQL or Redis for cross-node state persistence.
  • TLS Everywhere: Always run hotplexd behind a reverse proxy (Nginx, Traefik) providing TLS 1.3 encryption.
  • Authentication: Enable the AuthHook to integrate with your existing OIDC or LDAP provider.

Resource Planning ​

Load LevelCPURAMMax Concurrent Sessions
Small2 vCPU4 GB~50
Medium4 vCPU8 GB~200
Large8 vCPU16 GB~1000+

Monitoring Health ​

Always configure a liveness probe directed at our health endpoint:

http
GET /health

View the Docker Deployment Guide on GitHub

Alternative: Local Docker Build ​

bash
# Build locally
docker build -t hotplex:local .

# Run with persistent storage
docker run -p 8080:8080 \
  -v hotplex-data:/data \
  -e HOTPLEX_STATE_DB="sqlite:///data/hotplex.db" \
  hotplex:local

Released under the MIT License.