---
title: Deploy Garage with AI on Blossom
url: "/deploy/garage/"
canonical_url: https://blossom88.com/deploy/garage/
markdown_url: https://blossom88.com/deploy/garage.md
summary: Set up a private S3-compatible bucket, browse its files, and keep them on
  a Volume.
categories:
- deployment
- object-storage
stack:
- Rust
- SQLite
- S3
---

# Deploy Garage with AI on Blossom

[Garage](https://garagehq.deuxfleurs.fr/) is S3-compatible object storage.
Give an app a private bucket and use an S3 client to upload or read files.

## Ask Your Agent

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

[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 |
|---|---|---|
| Garage | Serve the private S3 API | Blossom Persistent Service |
| S3manager | Browse, upload and download files over HTTPS | Blossom App Capacity |
| Volume | Keep object blocks and SQLite metadata | Blossom Persistent Capacity |

## Deploy Garage and Open the Bucket Browser

Run one Garage [Persistent Service](/docs/apps/persistent-services/)
on the private Environment network. Enable Blossom Account access on
[S3manager](https://github.com/cloudlena/s3manager), the web client. Keep
the S3 key scoped to the bucket your app needs.

<details class="optional-reading" markdown="1">
<summary>Image, storage, and client settings</summary>

Build the Environment image with the
[Garage Dockerfile](/deploy/recipes/garage/Dockerfile) and
[garage.toml](/deploy/recipes/garage/garage.toml). Mount the Volume at
`/data`, where Garage keeps both metadata and object blocks. Run Garage in
single-node mode with a private RPC secret. Keep the S3 listener on port
3900 private and use a bucket-scoped key pair in private runtime variables.

Use the S3manager image for the web Service on port 8080.

| Service | Settings |
|---|---|
| Garage | `GARAGE_RPC_SECRET`, `GARAGE_DEFAULT_BUCKET`, `GARAGE_DEFAULT_ACCESS_KEY`, `GARAGE_DEFAULT_SECRET_KEY` |
| S3manager | `ENDPOINT` is the private Service hostname plus `:3900`. Use `REGION=garage`, `BUCKET_LOOKUP=Path`, and `USE_SSL=false` on the private network. |
| S3manager credentials | Set `ACCESS_KEY_ID` and `SECRET_ACCESS_KEY` to the bucket-scoped pair. |

This recipe uses one copy of the data. For redundant storage, see
[Garage’s cluster deployment guide](https://garagehq.deuxfleurs.fr/documentation/cookbook/real-world/).

</details>

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

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

</details>

## Upload a File to the Private Bucket

Open the browser and upload a small text file. Download it through the
same client. Confirm the key works for this bucket and that the file is
unavailable without a signed S3 request.

![Browse the private workshop bucket and its notes file.](/deploy/assets/images/garage/garage-workshop-files.webp)

> **Ask your AI agent:** Upload a sample file to my private bucket. Download it and check that it stays private.

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



## Get the Original File After Replacement

Replace the storage Container with the same Volume. Reopen the file from
the browser and check the downloaded contents and the bucket permissions.

![Inspect the original file after storage replacement.](/deploy/assets/images/garage/garage-notes-metadata.webp)


> **Ask your AI agent:** Replace Garage’s storage Container. Download my original file again and confirm the contents and access rules stayed the same.

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



## What You Get

- A private S3 endpoint and credentials for one bucket
- A file browser behind Blossom Account access
- The original file and permissions after replacing the storage Container

Tested on Blossom: The browser downloaded the same file after replacing the storage Container. The scoped key was still denied access to a different bucket.
