---
title: Deploy SeaweedFS with AI on Blossom
url: "/deploy/seaweedfs/"
canonical_url: https://blossom88.com/deploy/seaweedfs/
markdown_url: https://blossom88.com/deploy/seaweedfs.md
summary: Give your app a private S3-compatible bucket and keep the original files
  across Container replacement.
categories:
- deployment
- object-storage
stack:
- Go
- S3
---

# Deploy SeaweedFS with AI on Blossom

[SeaweedFS](https://github.com/seaweedfs/seaweedfs) is a file and object
store with an S3 API. Give your app a private bucket and try it with a
small text file.

## Ask Your Agent

> **Ask your AI agent:** Deploy SeaweedFS on Blossom. Give my app a private bucket and help me upload a sample file.
>
> Follow this guide: https://blossom88.com/deploy/seaweedfs/

[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 |
|---|---|---|
| SeaweedFS | Serve the S3 API and keep objects and metadata | One private Persistent Service with a Volume at /data |
| S3manager | Browse and download objects with the scoped key | Web Service with Blossom Account access |

## Deploy Private Object Storage

Run SeaweedFS on a Persistent Service with a Volume at `/data`. Give your
app a key for its bucket. Open the bucket browser through Blossom Account
access.

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

Build the [Dockerfile](/deploy/recipes/seaweedfs/Dockerfile) with the
[startup script](/deploy/recipes/seaweedfs/start-private-s3.sh). It starts
the pinned SeaweedFS release in single-node mode with its internal
listeners on loopback. The Service network serves the authenticated S3
API on port 8333.

Set `WEED_BOOTSTRAP_BUCKETS` to `workshop-files,workshop-archive` for the
sample and access check. Store the S3 identity configuration in
`WEED_S3_POLICY_JSON` as a protected variable. Give the client
`Read:workshop-files`, `List:workshop-files`, and
`Write:workshop-files`. Use only the bucket-scoped identity for this setup. See the [SeaweedFS S3 configuration](https://github.com/seaweedfs/seaweedfs/wiki/Amazon-S3-API).

Run [S3manager](https://github.com/cloudlena/s3manager) on port 8080.
Set `ENDPOINT` to the storage Service's private host and port.
Use `REGION=us-east-1`, `BUCKET_LOOKUP=Path`, and `USE_SSL=false` on the
private network. Give S3manager the same bucket-scoped key.

</details>

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

    blossom app_plan:preview --data seaweedfs-plan.yml
    blossom app:create --data seaweedfs-app.yml
    blossom environment:create --data seaweedfs-environment.yml
    blossom service:create --data seaweedfs-storage.yml
    blossom service:create --data seaweedfs-browser.yml
    blossom env_var:push --environment environment-100 --file seaweedfs.env
    blossom environment:deploy --id environment-100 --follow

</details>

## Put One File in the Bucket

Open `workshop-files` in S3manager. Upload the
[sample packing list](/deploy/recipes/seaweedfs/packing-list.txt), then
download it and check its contents.

![Find the packing list in a private S3 bucket.](/deploy/assets/images/seaweedfs/seaweedfs-private-bucket.webp)

> **Ask your AI agent:** Put the sample packing list in my private SeaweedFS bucket and open it in the bucket browser.

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



## Keep It Running

Keep the same Volume and S3 identities when updating the storage Service.
After replacing its Container, download the same file. Confirm that
unsigned requests and the scoped key's access to another bucket are denied.

![Inspect the original file after storage replacement.](/deploy/assets/images/seaweedfs/seaweedfs-original-object.webp)


> **Ask your AI agent:** Replace the SeaweedFS demo Container, then check the same file and the bucket access rules.

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



## What You Get

- An S3 endpoint on your private Environment network
- A client that can read and write one bucket
- The original file and access rules after a Container update

Tested on Blossom: The same scoped key downloaded the byte-identical file after replacing the SeaweedFS Container. Anonymous requests and reads from a separate bucket were denied.
