---
title: "Parse a compose file's services for a connected repository, live"
method: GET
path: "/repositories/{repository_id}/compose-file/live"
tags: ["Git Providers"]
---

# Parse a compose file's services for a connected repository, live

`GET /repositories/{repository_id}/compose-file/live`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/repositories/{repository_id}/compose-file/live`
- Auth: HTTP bearer

## Path parameters

- `repository_id` integer, required

## Query parameters

- `branch` string
- `path` string, required

## Response `200`

Compose services parsed successfully

- RepositoryComposeServicesResponse
  - `path` string, required
  - `repositoryId` integer, required
  - `services` ComposeServicePreviewResponse[], required
    - `dependsOn` string[], required
    - `detectedServiceType` 'postgres' | 'mariadb' | 'mongodb' | 'redis' | 's3', nullable: The specific well-known service family a compose service's image matches, when it matches one Temps can deploy as a managed `external_services` row instead. Drives the "deploy this as a Temps-managed service" recommendation in `GitSettings.tsx` and the deploy-log message — kept separate from `ComposeServiceSnapshot::looks_like_database` (which stays a plain bool) because that field only gates the unrelated "may need elevated Linux capabilities" warning, and S3/MinIO images need this classification without tripping that warning.
    - `environmentVariables` string[], required: Environment variable names declared by this service. Values are intentionally omitted.
    - `image` string, nullable
    - `looksLikeDatabase` boolean, required: True when the image looks like a well-known database engine (Postgres/MySQL/MariaDB/MongoDB/Redis and common forks) — a raw compose service never becomes a Temps-managed `external_services` row, so it never gets backup/restore. Informational only.
    - `name` string, required
    - `ports` ComposePortMapping[], required: Ports declared by Compose. Route `target`, not `published`: the latter is only the optional host-side Docker port.
      - `protocol` string: Transport protocol. Compose defaults to TCP.
      - `published` integer, nullable: Optional port published on the Docker host by Compose.
      - `target` integer, required: Port inside the service container. Temps routes traffic to this port.

## Other responses

- `400`: Bad request, or the compose file could not be parsed
- `401`: The git provider rejected the stored credential - the connection must be re-authorized
- `404`: Repository not found
- `500`: Internal server error

## Changes

- **2026-09-07** `38e97c3c35dd`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api path removed without deprecation
- **2026-08-11** `c24b47a04260`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/repositories/:repository_id/compose-file/live/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)
