---
title: Deploy DocuSeal with AI on Blossom
url: "/deploy/docuseal/"
canonical_url: https://blossom88.com/deploy/docuseal/
markdown_url: https://blossom88.com/deploy/docuseal.md
summary: Deploy DocuSeal with AI on Blossom. Collect document signatures with managed
  PostgreSQL, Redis, and private S3-compatible file storage.
categories:
- deployment
- productivity
stack:
- Ruby
- Rails
- Vue
- PostgreSQL
- Redis
---

# Deploy DocuSeal with AI on Blossom

[DocuSeal](https://www.docuseal.com/) turns PDFs into signing forms. Upload a
document, place the fields, and send a link for someone to complete and sign.

## Ask Your Agent

> **Ask your AI agent:** Deploy DocuSeal on Blossom and help me send my first document for signing.
>
> Follow this guide: https://blossom88.com/deploy/docuseal/

[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).

## Your Signing Setup

| Part | Purpose |
|---|---|
| DocuSeal Service | Document builder, signing pages, and background worker |
| Managed PostgreSQL | Accounts, templates, signing records, and encrypted settings |
| Managed Redis | Background jobs |
| Your private S3-compatible bucket | Original and completed documents |
| Your SMTP provider | Signing invitations and notifications |

Bring a private S3-compatible bucket and a verified SMTP sender for invitations.
Keep administration private; allow recipient signing pages and their required
file routes through Blossom's access policy. This setup uses one application
and embedded worker.

![DocuSeal's PDF form builder with name, signature, and date fields.](/deploy/assets/images/docuseal/editor.png)

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Upstream requirements: [deployment requirements](https://www.docuseal.com/install).

Keep administration behind **Blossom Account access** and native DocuSeal
sign-in. Allow the recipient signing pages and their required assets and file
routes through Blossom's access policy. Check a signing link in a separate
browser without a Blossom session; keep the bucket private.

[Source code](https://github.com/docusealco/docuseal).

Create a prebuilt-image Environment, then create and link PostgreSQL and Redis:

    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data postgres.yml --follow
    blossom cache_instance:create --data redis.yml --follow
    blossom environment_link:create --data database-link.yml
    blossom environment_link:create --data redis-link.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom service:create --data docuseal-service.yml
    blossom environment:deploy --id environment-100 --follow

Use the linked database and external Redis connection. Preserve
`SECRET_KEY_BASE` and `ENCRYPTION_SECRET` across updates; encrypted settings,
including the signing certificate, must remain readable.

Run database migrations once in a **Release Phase Hook** and disable automatic
migrations in the web process. Start the selected image's Puma application
explicitly when overriding its entrypoint, and use a health probe supported by
the image's Ruby runtime.

Configure the selected release's S3 storage endpoint, bucket, region, and
bucket-scoped credentials. With R2 and AWS SDK versions that add optional
checksums, set `AWS_REQUEST_CHECKSUM_CALCULATION=when_required` to avoid a
conflict with Active Storage's required checksum. Keep required checksums;
verify an upload and download through DocuSeal itself.

Set `SMTP_FROM` as well as the SMTP connection settings. Complete initial owner
setup privately and verify the public application URL used in invitations.

For a stop-before-start update, wait for each command to finish:

    blossom service:scale --id service-100 --desired-size 0 --follow
    blossom environment:deploy --id environment-100 --follow
    blossom service:scale --id service-100 --desired-size 1 --follow

</details>

## Send a Sample Document

Upload a sample PDF and add name and signature fields. Use a recipient address
you control, complete the form in a separate browser and download the signed
PDF. The dashboard keeps the completed submission and signing record.

<details class="optional-reading" markdown="1">
<summary>Updates and storage</summary>

Keep one active application and embedded worker for this setup. Stop it before
starting a replacement, preserving PostgreSQL, Redis, the bucket, and application
secrets. This update path has a short outage. External storage alone does not
establish multi-Container support.

After updating, sign in again, open a completed submission, and download its
PDF. Send a new test invitation to check that the replacement can still process
background work.

</details>

## What You Get

- A private document dashboard and PDF form builder
- Signing links recipients can open without a Blossom account
- Templates and signing records in managed PostgreSQL
- Original and completed documents in your private bucket
