Move docker do in support/doc
This commit is contained in:
parent
2fe8692797
commit
4df6a1b8e1
3 changed files with 30 additions and 36 deletions
20
README.md
20
README.md
|
@ -141,27 +141,11 @@ BitTorrent) inside the web browser, as of today.
|
||||||
|
|
||||||
## Run using Docker
|
## Run using Docker
|
||||||
|
|
||||||
You can quickly get a server running using Docker. You need to have [docker](https://www.docker.com/community-edition) and [docker-compose](https://docs.docker.com/compose/install/) installed.
|
See the [docker guide](/support/doc/docker.md)
|
||||||
|
|
||||||
For this example configuration, you should also run a reverse proxy. The example
|
|
||||||
Docker Compose file provides example labels for the Traefik load balancer,
|
|
||||||
though any HTTP reverse proxy is compatible.
|
|
||||||
|
|
||||||
Example for running a peertube server locally:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo \
|
|
||||||
PEERTUBE_HOSTNAME=peertube.lvh.me \
|
|
||||||
PEERTUBE_ADMIN_EMAIL=test@example.com \
|
|
||||||
PEERTUBE_TRANSCODING_ENABLED=true \
|
|
||||||
docker-compose up app
|
|
||||||
```
|
|
||||||
|
|
||||||
(Get the initial root user password from the program output.)
|
|
||||||
|
|
||||||
## Production
|
## Production
|
||||||
|
|
||||||
See the [production guide](support/doc/production.md).
|
See the [production guide](/support/doc/production.md).
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|
25
support/doc/docker.md
Normal file
25
support/doc/docker.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Docker guide
|
||||||
|
|
||||||
|
## Test/Development
|
||||||
|
|
||||||
|
You can quickly get a server running using Docker. You need to have [docker](https://www.docker.com/community-edition) and [docker-compose](https://docs.docker.com/compose/install/) installed.
|
||||||
|
|
||||||
|
For this example configuration, you should also run a reverse proxy. The example
|
||||||
|
Docker Compose file provides example labels for the Traefik load balancer,
|
||||||
|
though any HTTP reverse proxy is compatible.
|
||||||
|
|
||||||
|
Example for running a peertube server locally:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo \
|
||||||
|
PEERTUBE_HOSTNAME=peertube.lvh.me \
|
||||||
|
PEERTUBE_ADMIN_EMAIL=test@example.com \
|
||||||
|
PEERTUBE_TRANSCODING_ENABLED=true \
|
||||||
|
docker-compose up app
|
||||||
|
```
|
||||||
|
|
||||||
|
(Get the initial root user password from the program output.)
|
||||||
|
|
||||||
|
## Production
|
||||||
|
|
||||||
|
PR welcome!
|
|
@ -1,5 +1,8 @@
|
||||||
# Production guide
|
# Production guide
|
||||||
|
|
||||||
|
* [Installation](#installation)
|
||||||
|
* [Upgrade](#upgrade)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
@ -315,21 +318,3 @@ $ OLD_VERSION="v0.42.42" && SQL_BACKUP_PATH="backup/sql-peertube_prod-2018-01-19
|
||||||
pg_restore -U peertube -c -d peertube_prod "$SQL_BACKUP_PATH"
|
pg_restore -U peertube -c -d peertube_prod "$SQL_BACKUP_PATH"
|
||||||
sudo systemctl restart peertube
|
sudo systemctl restart peertube
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation on Docker Swarm
|
|
||||||
|
|
||||||
There is an example configuration for deploying peertube and a postgres database as a Docker swarm stack. It works like this:
|
|
||||||
|
|
||||||
(_Note_: You need to make sure to set `traefik` and `peertube` labels on the target node(s) for this configuration to work.)
|
|
||||||
|
|
||||||
1. Install a traefik loadbalancer stack (including Let's Encrypt) on your docker swarm. [Here](https://gist.github.com/djmaze/2684fbf147d775c8ee441b4302554823) is an example configuration.
|
|
||||||
|
|
||||||
2. Copy the [example stack file](support/docker/production/docker-stack.example.yml) for peertube:
|
|
||||||
|
|
||||||
scp support/docker/production/docker-stack.example.yml root@your-server:/path/to/your/swarm-config/peertube.yml
|
|
||||||
|
|
||||||
2. Have a look at the file and adjust the variables to your need.
|
|
||||||
|
|
||||||
3. Deploy the stack:
|
|
||||||
|
|
||||||
docker stack deploy -c peertube.yml peertube
|
|
||||||
|
|
Loading…
Reference in a new issue