Compartment is a self-hosted deployment platform that turns any Git repository into a running application. Define your services in a singleDocumentation Index
Fetch the complete documentation index at: https://docs.compartment.dev/llms.txt
Use this file to discover all available pages before exploring further.
compartment.yml file, run compartment deploy, and Compartment handles building, routing, and promoting your app — with zero downtime.
Quick Start
Deploy your first application in minutes with the Compartment CLI.
Installation
Install Compartment on your own infrastructure using Docker.
Configuration
Learn how to configure services, builds, and routing with
compartment.yml.CLI Reference
Full reference for every Compartment CLI command and flag.
How it works
Install Compartment
Run
compartment install to deploy the Compartment platform on your server. You’ll get a fully working control plane, container runtime, and routing layer.Initialize your project
In your repository, run
compartment init to create a compartment.yml descriptor. This links your repo to a project and defines your services.Deploy your app
Run
compartment deploy from your project root. Compartment builds your services, runs readiness checks, and promotes them to live traffic automatically.Key features
Multi-service apps
Deploy multiple services from one repository with shared routing and per-service configuration.
Zero-downtime deploys
Candidate builds are promoted only after passing readiness checks. Roll back instantly if needed.
Environment variables
Manage plain and sensitive variables scoped to environments or individual services.
SSO & access control
Configure OIDC single sign-on and role-based access for your team.