Compose

Move this environment's Compose stack to another node. Nothing runs yet: the next deployment stops the stack on its current home (`docker compose down`, volumes kept there) and starts it on the new node with empty volumes. Redeploy to complete the move.

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

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

Request body

acknowledge_data_lossboolean

The stack starts on the new node with empty volumes; the data on its current home is kept there but not copied. Must be true to move a stack that already has a home.

node_idinteger required

The node to move the stack to; 0 is the control plane.

Response

The new placement; redeploy to complete the move

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

    3 more changes in this revision