---
title: Deploy PeerTube with AI on Blossom
url: "/deploy/peertube/"
canonical_url: https://blossom88.com/deploy/peertube/
markdown_url: https://blossom88.com/deploy/peertube.md
summary: Upload a video, let PeerTube encode it for browser playback, and keep it
  through an app update.
categories:
- deployment
- media
stack:
- TypeScript
- Node.js
- Angular
- PostgreSQL
- Redis
- FFmpeg
---

# Deploy PeerTube with AI on Blossom

[PeerTube](https://joinpeertube.org/) is an open-source video hosting
platform. You can upload your own videos, organize them into channels,
and watch them in a browser.

## Ask Your Agent

> **Ask your AI agent:** Deploy PeerTube privately on Blossom. Help me upload and play my first video.
>
> Follow this guide: https://blossom88.com/deploy/peertube/

[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 |
|---|---|---|
| PeerTube | Upload, transcode, and play videos | Blossom Persistent Service |
| PostgreSQL and Redis | Store video records and queue transcoding | Blossom Managed Data |

## Deploy PeerTube

Have a short video you own ready to upload. Use a Persistent Service
on Blossom with PostgreSQL, Redis, and Blossom Account access for a
private instance. Set the final HTTPS hostname before the first boot.

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

Use the maintained official PeerTube image and expose port 9000 via
HTTPS. Mount the Volume at `/data` for video and generated playback
files, and include `/data/config` in the configuration search path
so administration changes stay on the Volume. Link PostgreSQL and
Redis. The [tested startup adapter](/deploy/recipes/peertube/linked-data.cjs)
translates Blossom's private connection URLs for PeerTube and starts the
official entrypoint.

Set `PEERTUBE_LOG_LEVEL=warn` before first boot and provide a strong
initial admin password through a secret Variable. Keep federation and
public registration disabled for this private setup. Enable HLS
transcoding and start with a 360p rendition for the first upload.
[PeerTube's Docker configuration](https://docs.joinpeertube.org/install/docker).

</details>

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

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

</details>

## Upload and Play Your First Video

Sign in to PeerTube, choose **Publish**, and upload your clip as a
private video. Wait for transcoding to finish, then open the video
from your library and play it. Use PeerTube’s **Internal** visibility
if you want other people with accounts on your instance to watch.
[PeerTube video privacy options](https://docs.joinpeertube.org/use/create-upload-video#video-confidentiality-options-what-do-they-mean).

![Find the uploaded private clip in your video library.](/deploy/assets/images/peertube/peertube-library.webp)

> **Ask your AI agent:** Help me upload this clip privately and check that it plays in PeerTube.

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



## Reopen the Video After an Update

Keep the same database and Volume when you update PeerTube. Sign in
again and play the original video from your library.

![Play the original clip after replacing the Container.](/deploy/assets/images/peertube/peertube-replay.webp)


> **Ask your AI agent:** Update PeerTube and check that the original video still plays.

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



## What You Get

- Your own video library and browser player
- Background transcoding for different screen sizes and connection speeds
- Videos and instance settings that survive Container replacement

Tested on Blossom: A private video played in a fresh browser after Container replacement, and its 360p rendition retained the same bytes.
