By default, Compartment uses a built-in managed domain for your installation. When you are ready to serve traffic from your own domain — for exampleDocumentation Index
Fetch the complete documentation index at: https://docs.compartment.dev/llms.txt
Use this file to discover all available pages before exploring further.
apps.example.com — use the compartment system domain commands to configure it. Compartment assigns each project and service a subdomain under the base domain you set, so a project named my-app would be reachable at my-app.apps.example.com.
Prerequisites
- You must run
compartment system domaincommands on the Compartment host machine (or with equivalent on-premises credentials). The CLI will prompt for elevated permissions if required. - You need the ability to create DNS records for the domain you want to use.
Step 1: Create an A record
Before configuring Compartment, add an A record (or a wildcard A record) in your DNS provider that points to the public IP address of your Compartment server:| Type | Name | Value |
|---|---|---|
A | *.apps.example.com | <your-server-ip> |
*.apps.example.com) covers all subdomains that Compartment will create for your projects and services. You can also add individual records per project, but a wildcard is simpler for ongoing use.
Step 2: Set the base domain
Rundomain set to tell Compartment which base domain to use:
--public-scheme controls whether Compartment generates http:// or https:// URLs for your projects. Accepted values: https (default), http.
--tls controls how TLS is terminated. Accepted values:
external(default) — your upstream proxy terminates TLS; Compartment trusts it.custom-cert— you supply your own certificate files (requires--public-scheme https).
Step 3: Attach a custom certificate (custom-cert mode only)
If you chose--tls custom-cert, attach your certificate and private key:
--cert-file.
Step 4: Verify the domain
Check that DNS has propagated and the domain configuration is consistent:Step 5: Activate the domain
Once verification passes, activate the new domain configuration so Compartment starts routing traffic through it:Check domain status
At any time, inspect the current domain configuration and health:baseDomain, publicScheme, tlsMode), any pending operation, and the health of the active domain endpoint.
Reset to the managed domain
To revert to Compartment’s built-in managed domain:Next steps
- Check that your projects are reachable at their new subdomains using
compartment status --project <name>. - Configure SSO so your team can authenticate via your identity provider — see Set up SSO with OIDC.