---
title: Deploy Dagu with AI on Blossom
url: "/deploy/dagu/"
canonical_url: https://blossom88.com/deploy/dagu/
markdown_url: https://blossom88.com/deploy/dagu.md
summary: Run a small workflow and reread the same step log after an update.
categories:
- deployment
- automation
stack:
- Go
- React
- YAML
---

# Deploy Dagu with AI on Blossom

[Dagu](https://docs.dagu.sh/) runs tasks you describe in YAML and
shows the result of each step. Start with a two-step workshop report
so you can see how a run and its logs fit together.

## Ask Your Agent

> **Ask your AI agent:** Deploy Dagu on Blossom and help me run a simple workflow.
>
> Follow this guide: https://blossom88.com/deploy/dagu/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Dagu | Run local workflow steps and show their results | Persistent Service with Blossom Account access |
| Dagu data directory | Keep workflow files, run history, and logs | Service Volume |

## Deploy Dagu

Keep Dagu behind Blossom Account access and use its built-in sign-in.
Give it a Volume for workflow definitions and run history.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the official Dagu image, port `8080`, and a Volume at
`/var/lib/dagu`. Set `DAGU_HOME=/var/lib/dagu/data`. Before the
image's entrypoint switches users, create that directory on the Volume
with mode `0750` and ownership matching the image's `PUID` and `PGID`.
Then run the original entrypoint with `dagu start-all`.

Set `DAGU_AUTH_MODE=builtin`, supply a strong initial password as a
runtime secret, and use `/api/v1/health` for the HTTP check. Run ordinary
in-Container steps in this example. Leave terminal access disabled and
keep the host Docker socket unmounted.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data dagu-plan.yml
    blossom service:create --data dagu-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Run a Two-Step Workflow

Count seven sample workshop seats in the first step and pass the count
to a summary step. Run the workflow and check that both steps succeeded.

![See the two successful steps in the workshop workflow.](/deploy/assets/images/dagu/first-dagu-workflow-run.webp)

> **Ask your AI agent:** Help me run a two-step workshop report and open the result in Dagu.

> Follow this guide: https://blossom88.com/deploy/dagu/



## Reopen the Original Run

Replace the Dagu Container. Open the existing run and select the summary
step's log. It should still say **Workshop summary ready: 7 seats**.

![Reopen the same summary step log.](/deploy/assets/images/dagu/dagu-step-log-after-replacement.webp)


> **Ask your AI agent:** Replace the Dagu Container and help me find the original workflow run and step output.

> Follow this guide: https://blossom88.com/deploy/dagu/



## What You Get

- A private dashboard for your workflows
- A completed sample run with step output
- The same run and log after an update

Tested on Blossom: The saved workflow, completed run and summary step log survived Container replacement.
