---
title: Deploy Seafile with AI on Blossom
url: "/deploy/seafile/"
canonical_url: https://blossom88.com/deploy/seafile/
markdown_url: https://blossom88.com/deploy/seafile.md
summary: Create a private file library and share one file for download.
categories:
- deployment
- file sharing
stack:
- Python
- Django
- React
- MariaDB
- Redis
---

# Deploy Seafile with AI on Blossom

[Seafile](https://www.seafile.com/) gives you a private place to organize
files and choose who can access them. Try Community Edition with a sample
library and one shared file.

## Ask Your Agent

> **Ask your AI agent:** Deploy Seafile on Blossom and help me share a file from a private library.
>
> Follow this guide: https://blossom88.com/deploy/seafile/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Seafile Community Edition | Store file blocks and serve the file workspace | Persistent Service behind Blossom Account access |
| MariaDB | Store account, library and sharing metadata | Private Persistent Service with three Seafile schemas |
| Redis | Cache workspace data | Blossom Managed Redis |

## Deploy Seafile

Use the [official Community Edition image](https://manual.seafile.com/latest/setup/setup_ce_by_docker/)
and protect the workspace with Blossom Account access.

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

Mount a [Persistent Service Volume](/docs/apps/persistent-services/)
at `/shared` for file blocks and Seafile configuration. Prepare the
`ccnet_db`, `seafile_db`, and `seahub_db` schemas on a private MariaDB
Service. Give Seafile one user scoped to those schemas and set
`USE_EXISTING_DB=1`. Mount its database Volume at `/var/lib/mysql`.
Link Managed Redis for the cache. Set the Seafile origin from the
HTTPS Service hostname and keep the signing key stable.

    blossom service:create --data seafile-database.yml
    blossom service:create --data seafile-web.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Share a Sample File

Create a library and upload a text file. Give the file a share link
with view and download permissions. Keep the library private.

> **Ask your AI agent:** Upload a sample handout to a private library and give me a download-only share link.

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



![Find the handout in the private Cedar Workshop library.](/deploy/assets/images/seafile/file-library.webp)

## Try the Read-Only Share

Open the share in a separate browser session that has access to the
Blossom Environment. The recipient can download the handout without
an account in Seafile.

![Open the download-only share for the same file.](/deploy/assets/images/seafile/read-only-share.webp)

## What You Get

A private library and a read-only share for the file you chose.

## What You Get

- A private Seafile Community Edition workspace
- A file library with one sample document
- A share link that lets a guest view and download the document

Tested on Blossom: The same file downloaded from the read-only share after replacing the Seafile Container.
