---
title: "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."
method: GET
path: "/projects/{project_id}/environments/{environment_id}/compose-placement"
tags: ["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.

`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)
- URL: `/api/projects/{project_id}/environments/{environment_id}/compose-placement`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Response `200`

The stack's placement

- ComposePlacementResponse: Where a Compose environment's stack lives, for the console.
  - `drift` string, nullable: Why the environment's Target Nodes / Label Selectors no longer describe the home, when they do not.
  - `environment_id` integer, required
  - `home_node_id` integer, nullable: The home node: `0` is the control plane. `None` when not pinned.
  - `home_node_name` string, nullable
  - `home_node_status` string, nullable: The home's state (`active`, `offline`, `draining`, ...). Deployments fail rather than move while the home is not active.
  - `moving_from_node_id` integer, nullable: A move is pending: the node the next deployment stops the stack on (`0` is the control plane).
  - `moving_from_node_name` string, nullable
  - `moving_from_node_status` string, nullable: That node's state. The stack's volumes are there, but it only runs there while the node is `active`.
  - `pinned` boolean, required: Whether the stack has a home yet. `false` until its first deployment reaches `docker compose up` (or a move chose one).
  - `pinned_at` string, date-time, nullable: When the stack was pinned to its home, ISO 8601.
  - `project_id` integer, required

## Other responses

- `400`: Not a Docker Compose project
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Environment not found
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - …1 more
- **2026-10-28** `c29436f6d27d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/compose-placement/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
