API referenceSections

Translate a docker-compose.yml for the site

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/sites/{id}/container/compose may answer 202

Translate a docker-compose.yml for the site (ADR 0191); with apply, make it the site's manifest and deploy it (ADR 0192). Unsafe or unsupported keys are refused with their path (COMPOSE_UNSAFE, COMPOSE_UNSUPPORTED, COMPOSE_BUILD_UNSUPPORTED, COMPOSE_PORTS, COMPOSE_VARIABLE_UNSET, COMPOSE_LINUX_IMAGE, COMPOSE_INVALID)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • yaml string required
    • max length 262144
  • apply boolean optional
  • trust string optional
    Allowed values: "" "trusted" "standard" "hostile"
Example
{
  "yaml": "string",
  "apply": true,
  "trust": ""
}

Responses

200 Translated

Content type: application/json

  • applied boolean required
  • container Container optional

    A site's Windows container (ADR 0162). Experimental: not yet run on Windows.

    • configured boolean required
    • image string required
    • tag string required
    • digest string required
    • port integer required
    • restart string required
    • health_path string required
    • isolation string required
    • user string required
    • volumes array<ContainerVolume> required
      • name string required

        A folder under the site's app\data; never a path

      • target string required

        Folder inside the container, such as C:\app\data; not C:\ itself or the system folders

    • desired string required

      running or stopped: what the owner asked for

    • state string required

      running, stopped, failed, or empty before the first deployment

    • working boolean required
    • last_error string required
    • registry_user string required
    • has_registry_password boolean required
    • env NodeEnv required
      • restarting boolean required

        Saving started the running release again to apply the variables

      • revision integer required

        0 until the variables are first saved

      • updated_at string (date-time) | null required
      • vars array<object> required
        • name string required
        • value string optional

          Left out for a secret: secrets are write-only

        • secret boolean required
        • has_value boolean required
    • cpu_cores number required
    • memory_mb integer required
    • max_image_mb integer required
    • active ContainerRelease | null required
      • id string required
      • image string required
      • tag string required
      • wanted string required

        The digest pinned when deployed, or empty

      • digest string required

        The digest the server ran, known once deployed

      • state string required
        Allowed values: "deploying" "active" "standby" "failed"
      • error_code string required
      • image_bytes integer (int64) required
      • created_at string (date-time) required
    • host object required
      • engine boolean required
      • engine_version string required
      • hyperv boolean required
      • engine_kind string required

        The server's container engine (ADR 0193); containerd runs trusted containers only

        Allowed values: "docker" "containerd"
      • hyperv_isolation boolean required

        The server can run Hyper-V isolated containers now (ADR 0190): false on a VM without nested virtualization, and when unknown

      • os_build integer required
      • image_tag string required

        The Microsoft base image tag that matches the server (ltsc2019, ltsc2022, ltsc2025)

      • linux string required
        Allowed values: "not_supported"
    • allowed boolean required
    • isolation_required string required
    • trust string required

      The container's trust profile (ADR 0190); before it has one, the plan's

      Allowed values: "trusted" "standard" "hostile"
    • trust_required string required

      The weakest profile the plan allows

      Allowed values: "trusted" "standard" "hostile"
    • trust_choices array<string> required

      The profiles the owner may choose, weakest first

      Allowed values: "trusted" "standard" "hostile"
    • registries array<string> required
    • require_digest boolean required
    • updated_at string (date-time) | null required
    • stack ContainerStack | null optional

      Multi-service manifest (ADR 0192); null for one container

      • web string required
      • web_command array<string> required
      • web_entrypoint array<string> required
      • web_depends_on array<string> required
      • web_health ContainerHealth required
        • type string required

          tcp: the broker connects to port; cmd: the engine runs cmd inside the container; none: running is enough. The web service is always checked over HTTP too

          Allowed values: "" "tcp" "cmd" "none"
        • port integer optional
          • minimum 0
          • maximum 65535
        • cmd string optional

          One line, run inside the container by its shell (never on the server)

        • interval_s integer optional
          • minimum 0
          • maximum 3600
        • timeout_s integer optional
          • minimum 0
          • maximum 600
        • retries integer optional
          • minimum 0
          • maximum 100
        • start_period_s integer optional
          • minimum 0
          • maximum 3600
      • web_cpu_cores number required
      • web_memory_mb integer required
      • services array<ContainerServiceView> required
        • name string required
        • image string required
        • tag string required
        • digest string required
        • running_digest string required

          The digest the active release runs

        • command array<string> required
        • entrypoint array<string> required
        • env array<object> required
          • name string required
          • value string optional

            Left out for a secret

          • secret boolean required
          • has_value boolean required
        • volumes array<ContainerVolume> required

          Fields of ContainerVolume are shown above.

        • cpu_cores number required
        • memory_mb integer required
        • shared_limits boolean required
        • restart string required
        • user string required
        • health ContainerHealth required

          Fields of ContainerHealth are shown above.

        • depends_on array<string> required
      • order array<string> required

        Start order, the web service last

      • source string required
  • result object required
    • web string required
    • warnings array<object> required
      • path string required
      • message string required
    • services array<object> required
      • name string required
      • image string required
      • registry string required
      • repository string required
      • tag string optional
      • digest string optional
      • entrypoint array<string> optional
      • command array<string> optional
      • cpu_milli integer required
      • memory_mb integer required
      • restart string required
      • user string optional
      • volumes array<ContainerVolume> optional

        Fields of ContainerVolume are shown above.

      • health ContainerHealth required

        Fields of ContainerHealth are shown above.

      • depends_on array<string> optional
      • env array<object> required
        • name string required
        • value string required
        • secret boolean required
      • port integer optional
      • isolation string optional
      • cpu_set boolean required
      • memory_set boolean required
Example
{
  "applied": true,
  "container": {
    "configured": true,
    "image": "string",
    "tag": "string",
    "digest": "string",
    "port": 0,
    "restart": "string",
    "health_path": "string",
    "isolation": "string",
    "user": "string",
    "volumes": [
      {
        "name": "string",
        "target": "string"
      }
    ],
    "desired": "string",
    "state": "string",
    "working": true,
    "last_error": "string",
    "registry_user": "string",
    "has_registry_password": true,
    "env": {
      "restarting": true,
      "revision": 0,
      "updated_at": "2026-01-01T00:00:00Z",
      "vars": [
        {
          "name": "string",
          "value": "string",
          "secret": true,
          "has_value": true
        }
      ]
    },
    "cpu_cores": 0,
    "memory_mb": 0,
    "max_image_mb": 0,
    "active": {
      "id": "string",
      "image": "string",
      "tag": "string",
      "wanted": "string",
      "digest": "string",
      "state": "deploying",
      "error_code": "string",
      "image_bytes": 0,
      "created_at": "2026-01-01T00:00:00Z"
    },
    "host": {
      "engine": true,
      "engine_version": "string",
      "hyperv": true,
      "engine_kind": "docker",
      "hyperv_isolation": true,
      "os_build": 0,
      "image_tag": "string",
      "linux": "not_supported"
    },
    "allowed": true,
    "isolation_required": "string",
    "trust": "trusted",
    "trust_required": "trusted",
    "trust_choices": [
      "trusted"
    ],
    "registries": [
      "string"
    ],
    "require_digest": true,
    "updated_at": "2026-01-01T00:00:00Z",
    "stack": {
      "web": "string",
      "web_command": [
        "string"
      ],
      "web_entrypoint": [
        "string"
      ],
      "web_depends_on": [
        "string"
      ],
      "web_health": {
        "type": "",
        "port": 0,
        "cmd": "string",
        "interval_s": 0,
        "timeout_s": 0,
        "retries": 0,
        "start_period_s": 0
      },
      "web_cpu_cores": 0,
      "web_memory_mb": 0,
      "services": [
        {
          "name": "string",
          "image": "string",
          "tag": "string",
          "digest": "string",
          "running_digest": "string",
          "command": [],
          "entrypoint": [],
          "env": [],
          "volumes": [],
          "cpu_cores": 0,
          "memory_mb": 0,
          "shared_limits": true,
          "restart": "string",
          "user": "string",
          "health": {
            "type": "",
            "port": null,
            "cmd": null,
            "interval_s": null,
            "timeout_s": null,
            "retries": null,
            "start_period_s": null
          },
          "depends_on": []
        }
      ],
      "order": [
        "string"
      ],
      "source": "string"
    }
  },
  "result": {
    "web": "string",
    "warnings": [
      {
        "path": "string",
        "message": "string"
      }
    ],
    "services": [
      {
        "name": "string",
        "image": "string",
        "registry": "string",
        "repository": "string",
        "tag": "string",
        "digest": "string",
        "entrypoint": [
          "string"
        ],
        "command": [
          "string"
        ],
        "cpu_milli": 0,
        "memory_mb": 0,
        "restart": "string",
        "user": "string",
        "volumes": [
          {
            "name": "string",
            "target": "string"
          }
        ],
        "health": {
          "type": "",
          "port": 0,
          "cmd": "string",
          "interval_s": 0,
          "timeout_s": 0,
          "retries": 0,
          "start_period_s": 0
        },
        "depends_on": [
          "string"
        ],
        "env": [
          {
            "name": "string",
            "value": "string",
            "secret": true
          }
        ],
        "port": 0,
        "isolation": "string",
        "cpu_set": true,
        "memory_set": true
      }
    ]
  }
}

202 Applied and queued

Content type: application/json

Fields of ComposeImport are shown above.

Example
{
  "applied": true,
  "container": {
    "configured": true,
    "image": "string",
    "tag": "string",
    "digest": "string",
    "port": 0,
    "restart": "string",
    "health_path": "string",
    "isolation": "string",
    "user": "string",
    "volumes": [
      {
        "name": "string",
        "target": "string"
      }
    ],
    "desired": "string",
    "state": "string",
    "working": true,
    "last_error": "string",
    "registry_user": "string",
    "has_registry_password": true,
    "env": {
      "restarting": true,
      "revision": 0,
      "updated_at": "2026-01-01T00:00:00Z",
      "vars": [
        {
          "name": "string",
          "value": "string",
          "secret": true,
          "has_value": true
        }
      ]
    },
    "cpu_cores": 0,
    "memory_mb": 0,
    "max_image_mb": 0,
    "active": {
      "id": "string",
      "image": "string",
      "tag": "string",
      "wanted": "string",
      "digest": "string",
      "state": "deploying",
      "error_code": "string",
      "image_bytes": 0,
      "created_at": "2026-01-01T00:00:00Z"
    },
    "host": {
      "engine": true,
      "engine_version": "string",
      "hyperv": true,
      "engine_kind": "docker",
      "hyperv_isolation": true,
      "os_build": 0,
      "image_tag": "string",
      "linux": "not_supported"
    },
    "allowed": true,
    "isolation_required": "string",
    "trust": "trusted",
    "trust_required": "trusted",
    "trust_choices": [
      "trusted"
    ],
    "registries": [
      "string"
    ],
    "require_digest": true,
    "updated_at": "2026-01-01T00:00:00Z",
    "stack": {
      "web": "string",
      "web_command": [
        "string"
      ],
      "web_entrypoint": [
        "string"
      ],
      "web_depends_on": [
        "string"
      ],
      "web_health": {
        "type": "",
        "port": 0,
        "cmd": "string",
        "interval_s": 0,
        "timeout_s": 0,
        "retries": 0,
        "start_period_s": 0
      },
      "web_cpu_cores": 0,
      "web_memory_mb": 0,
      "services": [
        {
          "name": "string",
          "image": "string",
          "tag": "string",
          "digest": "string",
          "running_digest": "string",
          "command": [],
          "entrypoint": [],
          "env": [],
          "volumes": [],
          "cpu_cores": 0,
          "memory_mb": 0,
          "shared_limits": true,
          "restart": "string",
          "user": "string",
          "health": {
            "type": "",
            "port": null,
            "cmd": null,
            "interval_s": null,
            "timeout_s": null,
            "retries": null,
            "start_period_s": null
          },
          "depends_on": []
        }
      ],
      "order": [
        "string"
      ],
      "source": "string"
    }
  },
  "result": {
    "web": "string",
    "warnings": [
      {
        "path": "string",
        "message": "string"
      }
    ],
    "services": [
      {
        "name": "string",
        "image": "string",
        "registry": "string",
        "repository": "string",
        "tag": "string",
        "digest": "string",
        "entrypoint": [
          "string"
        ],
        "command": [
          "string"
        ],
        "cpu_milli": 0,
        "memory_mb": 0,
        "restart": "string",
        "user": "string",
        "volumes": [
          {
            "name": "string",
            "target": "string"
          }
        ],
        "health": {
          "type": "",
          "port": 0,
          "cmd": "string",
          "interval_s": 0,
          "timeout_s": 0,
          "retries": 0,
          "start_period_s": 0
        },
        "depends_on": [
          "string"
        ],
        "env": [
          {
            "name": "string",
            "value": "string",
            "secret": true
          }
        ],
        "port": 0,
        "isolation": "string",
        "cpu_set": true,
        "memory_set": true
      }
    ]
  }
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required