> ## Documentation Index
> Fetch the complete documentation index at: https://libops-renovate-github-com-libops-sitectl-0-x.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Triplet plugin

> Standalone Triplet sitectl workflows and reusable Triplet service component support.

export const Compose = () => <Tooltip headline="Compose" tip={<>
        Docker Compose is Docker's tool for defining and running multi-container applications.{" "}
        <a href="https://docs.docker.com/compose/">https://docs.docker.com/compose/</a>.
      </>}>
    <>
      <Icon icon="docker" />
      {" "}
      Compose
    </>
  </Tooltip>;

The Triplet plugin provides a standalone Triplet <Compose /> template and exports the reusable `triplet` service component for application plugins.

The plugin binary is `sitectl-triplet`. The command namespace is `sitectl triplet`, and contexts created by this plugin use `plugin: triplet`.

## Create

Start a standalone Triplet project:

```bash theme={null}
sitectl create triplet
```

The create flow clones the Triplet template, configures a sitectl context, and uses the template's Makefile targets for initialization and lifecycle commands.

## Lifecycle

Run lifecycle commands against the active Triplet context:

```bash theme={null}
sitectl triplet init
sitectl triplet up
sitectl triplet down
sitectl triplet status
sitectl triplet logs
sitectl triplet rollout
```

Project discovery claims local Compose projects that contain a `triplet` service, so `--context .` can resolve a checked-out Triplet project without a saved context.

## Service component

Application plugins can import the Triplet component package and register it with their own target rules. The component supports `enabled`, `disabled`, and `distributed` dispositions.

```bash theme={null}
sitectl component describe triplet
sitectl component set triplet enabled
sitectl component set triplet disabled
sitectl component set triplet distributed
```

Use `distributed` when the application should point at an external Triplet service instead of managing Triplet in the current Compose project.
