# Installation

The service can be installed through the Portainer web interface.

<p class="callout info">Learn about [creating a new stack](https://hub.subspace.services/books/portainer/page/creating-a-new-stack "Creating a New Stack").</p>

## Docker Compose

Use the following code to install the service:

```yaml
---
services:
  owncast:
    image: owncast/owncast:latest
    container_name: owncast
    network_mode: bridge
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Vancouver
    ports:
      - 1935:1935
      - 8170:8080
    volumes:
      - /srv/owncast:/config
    restart: unless-stopped
```