Skip to content

Commit

Permalink
Update container document to have an example compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabek committed Sep 23, 2024
1 parent ec1d6b3 commit 852fd2f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions content/quickstart/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,28 @@
title: "Use a container image"
description: "Images for running Owncast within a containerized environment are available for releases."
draft: false
images: []
tags: docker, container, portainer, installation, compose
aliases: [/quickstart/container, /quickstart/docker]
weight: 030
toc: false
---

1. Pull the `latest` version [from Dockerhub](https://hub.docker.com/r/owncast/owncast/tags): `docker pull owncast/owncast:latest`.
1. Run `` docker run -v `pwd`/data:/app/data -p 8080:8080 -p 1935:1935 -it owncast/owncast:latest `` to start the service.
1. Run `` docker run -v `pwd`/data:/app/data -p 8080:8080 -p 1935:1935 owncast/owncast:latest `` to start the service.
1. This will bind the `data` directory so you have access to backups and your database in case you need to move it to another server.

Alternatively, you can create a `docker-compose.yml` file with the following contents:

```yaml
version: "3"
services:
owncast:
image: owncast/owncast:latest
ports:
- "8080:8080"
- "1935:1935"
volumes:
- ./data:/app/data
```
and run `docker-compose up` to start the service.

0 comments on commit 852fd2f

Please sign in to comment.