Compose

Where this environment's Compose stack lives: its home node, a pending move, and whether the environment's Target Nodes / Label Selectors still describe that home.

Changed on
get/projects/{project_id}/environments/{environment_id}/compose-placement

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

environment_idinteger required

Environment ID

Response

The stack's placement

driftstring nullable

Why the environment's Target Nodes / Label Selectors no longer describe the home, when they do not.

environment_idinteger required
home_node_idinteger nullable

The home node: 0 is the control plane. None when not pinned.

home_node_namestring nullable
home_node_statusstring nullable

The home's state (active, offline, draining, ...). Deployments fail rather than move while the home is not active.

moving_from_node_idinteger nullable

A move is pending: the node the next deployment stops the stack on (0 is the control plane).

moving_from_node_namestring nullable
moving_from_node_statusstring nullable

That node's state. The stack's volumes are there, but it only runs there while the node is active.

pinnedboolean required

Whether the stack has a home yet. false until its first deployment reaches docker compose up (or a move chose one).

pinned_atstring date-time nullable

When the stack was pinned to its home, ISO 8601.

project_idinteger required

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    2 more changes in this revision