---
title: "Deploy Owncast on Pethost in one click"
description: "Live video and chat on a page of your own. A template for Pethost: in a minute or two the app is live on your machine, with HTTPS at its own address and nightly backups."
---

[← All templates](https://pethost.dev/templates/)

# Deploy Owncast on Pethost in one click

Live video and chat on a page of your own

[Deploy on Pethost](https://console.pethost.dev/?template=owncast)

## What happens

1. You sign in to Pethost or make an account, with a passkey, GitHub or Google.
2. No machine yet? You pick a plan, and we prepare one for you. The link waits in your browser until it is ready.
3. New project opens at the app. You fill in what it asks for and click Create project: **Admin password**.
4. In a minute or two the app is live at its own address with HTTPS. Its secrets are made for it at random, and its data is in the nightly backup.
5. It is a project like any other: its compose.yaml, its .env, its logs and a terminal are in the panel, and your agent can change it, roll it back or restore it.

## First steps

The admin is at /admin: sign in as admin with the password you gave. Stream from OBS to rtmp://owncast.sam.pethost.app:1935/live with the key in STREAM_KEY of the project’s .env. Both are changed in .env: every start sets them again.

## What it runs

The template is this compose.yaml and the variables it writes into the project’s .env. Pethost runs the file as it is written.

```
services:
  owncast:
    image: owncast/owncast:0.3.0
    restart: unless-stopped
    command:
      - "--adminpassword=${ADMIN_PASSWORD}"
      - "--streamkey=${STREAM_KEY}"
    ports:
      - "1935:1935"
    volumes:
      - data:/app/data

volumes:
  data:
```

[compose.yaml](https://pethost.dev/templates/owncast/compose.yaml)[See it on GitHub](https://github.com/pethost-dev/templates/tree/main/owncast)

Pethost · Stephan Gomer · NIP 1133096755

[Templates](https://pethost.dev/templates/) [About](https://pethost.dev/about/) [Blog](https://pethost.dev/blog/) [Terms](https://pethost.dev/terms/) [Privacy](https://pethost.dev/privacy/) [Refunds](https://pethost.dev/refunds/) [API](https://pethost.dev/docs/api/) [CLI](https://pethost.dev/docs/cli/) [Plugin](https://github.com/pethost-dev/plugin) [support@pethost.dev](mailto:support@pethost.dev)
