# Install on a self-hosted app platform

Self-hosted app platforms such as CasaOS, Runtipi, umbrelOS, and Portainer run apps in Docker for you. On these platforms, Tilecast runs as a Tilecast Container installation: the Tilecast Server and its PostgreSQL database. The platform installs, starts, updates, and removes it. Tilecast Managed doesn't run on these platforms.

:::note
Tilecast isn't listed in any of these app stores yet. The Tilecast repository keeps qualification-only definitions for them in [`deploy/catalog`](https://github.com/gbyo/tilecast/tree/main/deploy/catalog). This page will say when a store lists Tilecast.
:::

## Platform status

| Platform  | Today                                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CasaOS    | Blocked until the pinned Server supports protected first-run setup. Do not import the draft as a custom app.                                                                     |
| Runtipi   | Blocked until protected first-run setup is supported. The official store takes no new apps.                                                                                      |
| umbrelOS  | Blocked until a Tilecast release supports protected first-run setup and includes arm64 images.                                                                                   |
| Portainer | Deploy the Tilecast Container Compose file as a stack. Portainer app templates can't create a separate database password for each installation, so Tilecast doesn't provide one. |

## What each definition does

- It installs one exact Tilecast release, pinned by image digest, with PostgreSQL 17.
- It creates a database password for your installation. No two installations share one.
- It keeps the database private to the app. PostgreSQL has no published port.
- It keeps media, Player updates, and backups in the app's data folder.
- It never gets access to the Docker socket or to the rest of the host.

## First-run setup

The draft catalog definitions are not installable for normal use. The pinned Server doesn't support a one-time setup code, so the drafts keep their HTTP listener inside the container to prevent someone else from claiming the Owner account. Do not remove this restriction.

For now, use the regular [Tilecast Container installation](../../installation/) instead, and complete its setup on a trusted network before allowing others to reach it.

## Updates and backups

The platform updates Tilecast when its store offers a newer release. Update through the platform, not with the Docker Compose steps of [Update Tilecast Server](../../administration/server-updates/). Before you update or uninstall, create a backup in Studio under **Settings** > **Backup and restore** and download it. See [Back up and restore Tilecast](../../administration/backups/).

Uninstalling the app can delete its data, depending on the platform and the options you choose. Keep a downloaded backup. To move to Tilecast Managed or to the regular Container installation later, restore that backup on the new installation.

## Portainer

In Portainer, add a stack from [`deploy/docker/compose.yml`](https://github.com/gbyo/tilecast/blob/main/deploy/docker/compose.yml) and set the environment variables from `.env.example` in the stack, with a long random `POSTGRES_PASSWORD` of your own. The [Container installation guide](../../installation/) explains each setting.
