Skip to content

central-deploy Docker Compose Contract

Scope: deployable components only. See the component standard.

Canonical home: robotsix-central-deploy. The contract is implemented by central-deploy's parser and served by the running server, so the authoritative copy lives — and versions — with the code. This page is a pointer, not a copy; an earlier copy kept here drifted from the implementation (gateway routing, § 8 config) and was removed.

Where to read it

What it covers

The contract is the authoritative specification for the deploy/docker-compose.yml a service repo must ship before central-deploy's onboarding flow accepts it:

  • the machine-readable version header (# central-deploy-contract-version: 1) and its breaking-change semantics;
  • structural rules — service keys, primary/sibling designation, container naming;
  • required and optional fields (image, ports, named volumes, environment secret slots, healthcheck);
  • the robotsix.deploy.* extension labels (primary, claude-mount, host-docker-sock, config-target, config-assist);
  • volume declarations;
  • ignored vs. prohibited compose fields (error classification);
  • runtime configuration via the repo's config template (§ 8 — config/config.json + config/config.schema.json per the config standard) and the field → ComponentConfig mapping.

Volumes only — no host-path bind mounts

Deployed components never bind-mount host paths; all persistent or shared state goes through named volumes (declared in the compose, or injected by central-deploy — e.g. the managed claude-auth volume behind the claude-mount label). Coupling a component to host filesystem layout caused a real outage (2026-07-03, robotsix-chat: host-uid-dependent credential readability plus a containerized ~ expansion silently auto-creating empty root-owned host directories). The single sanctioned exception is the Docker socket, read-only, on a hardened non-primary socket-proxy sibling (host-docker-sock label). central-deploy's own infra mounts are the deployment system itself (bootstrap tier), not a managed component.

Resource limits follow the same shape: compose resource fields are ignored — central-deploy applies a default memory limit to every managed container (overridable per component in the dashboard), so one leaking service OOMs and restarts alone instead of taking the host with it.

For the task-oriented walkthrough of making a repo deployable, see Integrating a service.