Skip to Content

Architecture

Overview

Companion Hub is built as a modern, modular self-hosting platform with several interconnected components.

Companion Hub Architecture

Core Components

Hub (Local Server)

The Hub is the main application running on your server:

CI Account (hub.ci.computer)

The cloud companion at hub.ci.computerΒ  that provides:

  • Remote Hub management
  • Device pairing
  • Managed Cloudflare Gateway provisioning
  • Remote App Store access

Cloudflare Gateway

A managed Cloudflare TunnelΒ  that securely exposes your apps without port forwarding. Provisioned and managed through your CI Account.

Docker Layer

All apps run as Docker Compose projects. Each app is isolated in its own compose stack but shares a common Docker network for inter-app communication.

Docker Services

The Hub runs several containers defined in the production compose file:

ServiceImagePurpose
ci-os-hubHub backend + frontendMain application (API on port 5002)
ci-hub-dbPostgreSQL 14Database (port 6543)
ci-os-hub-queueRabbitMQ 4Message broker
ci-hub-traefikTraefik v3Reverse proxy, SSL, routing
hub-tailscaleTailscalePrivate VPN sidecar (enabled by default; optional to disable)
cloudflaredCloudflare tunnel agentManaged gateway (optional)

Technologies

Last updated on