Skip to main content
On this page

Deployment

Follow Install with Docker. The installer uses the edge profile in docker-compose.yml. Run stack commands from the installation directory with the same environment file and project name.

Service topology

The stack contains PostgreSQL, Redis, the backend, frontend and Ansible runner. The optional nginx edge terminates TLS and routes web and API traffic. The backend supplies the embedded proxy runtime and can start embedded guacd for RDP when PIPING_START_EMBEDDED_GUACD=auto and PIPING_PROXY__GUACD_HOST is loopback.

  • The frontend publishes PIPING_FRONTEND_PORT (default 9080).
  • With the edge profile, nginx publishes PIPING_HTTP_PORT / PIPING_HTTPS_PORT (defaults 80 / 443).
  • PostgreSQL and Redis publish PIPING_POSTGRES_PORT / PIPING_REDIS_PORT (defaults 5432 / 6379). Firewall them; browsers do not need database access.

Network access

PIPING_RUN_MODE=backend serves the API, inventory, access control and audit, requires PostgreSQL and Redis, and applies forward-only migrations at startup. PIPING_RUN_MODE=proxy runs an edge proxy without those database dependencies.

The central backend must reach a proxy node's HTTP(S) base URL; the node must reach its target hosts. Register it under Administration → Proxy Nodes and assign targets to it. Nodes do not self-register. See Proxy nodes for trust and routing configuration.

To use Piping as a bastion, restrict target SSH/RDP/VNC ports to the backend or assigned proxy nodes. Operators connect to the portal over HTTPS.

CCTV does not traverse proxy nodes. The backend itself must reach recorder management ports: TCP 34567 for DVRIP/Sofia, TCP 80 for Dahua, Hikvision and ONVIF unless overridden. Live view and RTSP clip paths also need port 554 for the vendor families; ONVIF supplies its stream URL and port. Media processing runs in ffmpeg on the backend and consumes CPU and the shared media budget.

Secrets and TLS

Use the protected environment generated by the installer; Configuration owns the variable reference. Missing or weak production secrets prevent startup. Do not enable PIPING_SECURITY_ALLOW_WEAK_DEV_SECRETS in production.

Keep PIPING_SECRETS__CIPHER_KEY_B64 and PIPING_AUTH_PASSWORD_PEPPER securely: key loss makes credentials unreadable, and unplanned pepper changes invalidate local passwords. Provision the local administrator password through PIPING_AUTH_LOCAL_ADMIN_PASSWORD, not a shared default.

Replace the edge's initial self-signed certificate with trusted fullchain.pem / privkey.pem in docker/nginx/ssl/, or terminate TLS in your own reverse proxy. Pass WebSocket Upgrade/Connection headers and allow long read timeouts. Keep secure session cookies enabled for HTTPS.

Operations checklist

  • Pin source and complete backend/frontend/runner image references to one reviewed version.
  • Restrict public ingress and firewall database/Redis ports.
  • Store deployment secrets securely and maintain off-host PostgreSQL backups with tested recovery.
  • Verify /api/v1/health and sign-in after startup.
  • Grant roles and scoped policies before inviting users.
  • Enable OpenTelemetry only when needed; shipped export is opt-in and has no default collector.
  • Use the included 10 seats without registration or activation. Configure licensing only if additional seats are needed; already issued entitlements retain their signed limits.

For version changes and rollback, use Upgrading.