Architecture

ZenSailor uses a modern, microservices-based architecture running entirely on Docker.

  • Control Plane: The Next.js dashboard and API server. It manages state and orchestration.
  • Agent: Runs on every node (including the main one). It listens for commands via NATS and executes Docker operations.
  • NATS: A lightweight messaging system used for communication between the Control Plane and Agents.
  • Traefik: The edge router. It automatically discovers running services and routes traffic to them, handling SSL termination.
  • PostgreSQL: Stores platform data (users, projects, deployment history).