---
title: Deploy Teedy with AI on Blossom
url: "/deploy/teedy/"
canonical_url: https://blossom88.com/deploy/teedy/
markdown_url: https://blossom88.com/deploy/teedy.md
summary: Tag a PDF in a private document archive and give a second user read-only
  access.
categories:
- deployment
- documents
stack:
- Java
- AngularJS
- PostgreSQL
---

# Deploy Teedy with AI on Blossom

[Teedy](https://teedy.io/) is a document archive for organizing PDFs,
scans, and other files. Try it with one PDF and a teammate who only needs
to read it.

## Ask Your Agent

> **Ask your AI agent:** Deploy Teedy on Blossom. Help me tag a sample PDF and share it read-only with a teammate.
>
> Follow this guide: https://blossom88.com/deploy/teedy/

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

## Have Ready

- **x86 Location** (Required): The pinned Teedy image uses x86.
- **Managed PostgreSQL** (Required): Link an empty database at first setup.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Teedy | Serve the archive and store original files | One Persistent Service with a Volume at /data |
| PostgreSQL | Keep the document records, tags, accounts, and permissions | Blossom Managed Data |

## Deploy Teedy

Use a Persistent Service with a Volume at `/data`. Link managed
PostgreSQL and keep the archive behind Blossom Account access.

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

Use the [Teedy 1.12 release](https://github.com/sismics/docs/releases/tag/v1.12)
on x86 with port 8080. The pinned image is
`docker.io/sismics/docs@sha256:29ce750d44fd7de8ab995d77aa2bb50978f4ba0862e6aa827bf67517d8758c7b`.
Choose a medium Container. The
[startup script](/deploy/recipes/teedy/launcher-runtime.bash) sets a
512 MiB Java heap, translates the `TEEDY_POSTGRES_URL` Link for JDBC,
and uses the generated Service URL for `DOCS_BASE_URL`.

At first boot set `DOCS_ADMIN_EMAIL_INIT` and a literal bcrypt hash in
`DOCS_ADMIN_PASSWORD_INIT`. Keep the hash and credentials in protected
Environment variables. See the
[pinned install instructions](https://github.com/sismics/docs/blob/818cb102edba17c330e9e2089ad150e1032bf7f5/README.md#install-with-docker).

</details>

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

    blossom app_plan:preview --data teedy-plan.yml
    blossom database_instance:create --data teedy-postgres.yml
    blossom app:create --data teedy-app.yml
    blossom environment:create --data teedy-environment.yml
    blossom environment_link:create --data teedy-postgres-link.yml
    blossom env_var:push --environment environment-100 --file teedy.env
    blossom service:create --data teedy-web.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Tag a Sample Document

Create two regular Teedy users. As the first user, add a document and
attach the [workshop PDF](/deploy/recipes/teedy/workshop-scan.pdf). Add a
`workshop` tag so you can find it again.

![Find the workshop PDF with its tag.](/deploy/assets/images/teedy/teedy-tagged-document.webp)

> **Ask your AI agent:** Add the sample workshop PDF to Teedy and tag it workshop.

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



## Share the PDF Read-Only

Give the second user **Read** permission on that document. Open it in
a separate signed-in browser session and download the original. Give the
reader Blossom Account access if they are using the protected URL.

> **Ask your AI agent:** Give my teammate read-only access to the workshop PDF and verify they can download the original.

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



## Keep It Running

Retain the same Volume and database when updating Teedy. After replacing
the web Container, sign in again as both users. The owner can find the
PDF by its tag, and the reader can still download it.

![Open the shared PDF as a read-only teammate.](/deploy/assets/images/teedy/teedy-reader.webp)


> **Ask your AI agent:** Replace the Teedy demo Container and check the tagged document and the teammate’s read-only access.

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



## What You Get

- A document archive protected by Blossom Account access
- A sample PDF organized with a tag
- Read-only access for a separate Teedy user
- The same file, tag, and permissions after an update

Tested on Blossom: After Container replacement, the owner found the tagged document, and the recipient reopened and downloaded the byte-identical original with read-only access.
