> ## Documentation Index
> Fetch the complete documentation index at: https://home-app.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployments

> The queued deploy engine, live logs, templates and git deploys.

## The engine

Every action that touches `docker compose` — up, down, pull, restart,
redeploy — is a **deployment**: a queued job with a step log written to
`data/deployments/<id>.log`. Two run at once, one per stack at a time, so a
redeploy can never collide with itself.

Deployments carry a **trigger**: `manual`, `create`, `template`, `git_push`,
`git_poll`, `schedule`, or `rollback`. The Deployments tab streams the log
live and lets you cancel a running job. If Home restarts mid-deploy, the job
is marked failed on boot with *"Home restarted during this deployment."*

## Deploys tab

* Live log tail with step headers (`==> [2/3] docker compose up`)
* Status, trigger, duration and summary per run
* Cancel button on active runs
* Rollback redeploys the previous compose revision from the deployment log

## Templates

**New project → Template** browses the Dokploy catalog (\~200 apps) enriched
with selfh.st descriptions, stars, tags and icons. The wizard asks for ports
then variables (`${domain}`, `${password}`, `${randomPort}` are filled or
generated), shows a compose preview, and deploys straight into a project —
existing or new. The catalog caches for 24 h; offline installs fall back to
a bundled snapshot.

## Git deploys

Connect a provider in **Settings → Integrations** (GitHub, Gitea, GitLab or
GitBucket), then **New project → Git**:

**1. Pick the repo and compose file**

Home lists your repos, branches and files — it highlights compose
candidates automatically.

**2. Deploy**

The checkout lands in `data/projects/<project>/<stack>/src/` via
isomorphic-git — no `git` binary needed. Your `.env` is preserved across
checkouts.

**3. Redeploy on push**

Copy the webhook URL + secret from the stack's **Git source** card into
the repo's webhook settings. Pushes that touch the branch trigger a
redeploy; a fallback poller catches pushes missed by webhooks
(`poll_interval_min` per stack).

The Git source card shows repo, branch, compose path and last deployed
commit, and exposes auto-deploy toggle, poll interval, secret rotation and a
manual *Check for updates*.

> [!WARNING]
>
> Webhooks verify HMAC signatures — point them at Home over a stable
> hostname. On LAN-only installs use the poller instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.