diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-29 11:23:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-29 11:23:38 +0100 |
commit | 4df6a1b8e1ec98355667cb872511d27035bfaf5a (patch) | |
tree | 5fc9c52b2f65f7de3844c8c9599aa9d9fb51ad5c /support/doc/production.md | |
parent | 2fe8692797ec8da890a6f954e6c850abc0dbf7e4 (diff) | |
download | PeerTube-4df6a1b8e1ec98355667cb872511d27035bfaf5a.tar.gz PeerTube-4df6a1b8e1ec98355667cb872511d27035bfaf5a.tar.zst PeerTube-4df6a1b8e1ec98355667cb872511d27035bfaf5a.zip |
Move docker do in support/doc
Diffstat (limited to 'support/doc/production.md')
-rw-r--r-- | support/doc/production.md | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index ae7f3e0f6..56d00bf56 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -1,5 +1,8 @@ | |||
1 | # Production guide | 1 | # Production guide |
2 | 2 | ||
3 | * [Installation](#installation) | ||
4 | * [Upgrade](#upgrade) | ||
5 | |||
3 | ## Installation | 6 | ## Installation |
4 | 7 | ||
5 | ### Dependencies | 8 | ### Dependencies |
@@ -315,21 +318,3 @@ $ OLD_VERSION="v0.42.42" && SQL_BACKUP_PATH="backup/sql-peertube_prod-2018-01-19 | |||
315 | pg_restore -U peertube -c -d peertube_prod "$SQL_BACKUP_PATH" | 318 | pg_restore -U peertube -c -d peertube_prod "$SQL_BACKUP_PATH" |
316 | sudo systemctl restart peertube | 319 | sudo systemctl restart peertube |
317 | ``` | 320 | ``` |
318 | |||
319 | ## Installation on Docker Swarm | ||
320 | |||
321 | There is an example configuration for deploying peertube and a postgres database as a Docker swarm stack. It works like this: | ||
322 | |||
323 | (_Note_: You need to make sure to set `traefik` and `peertube` labels on the target node(s) for this configuration to work.) | ||
324 | |||
325 | 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. | ||
326 | |||
327 | 2. Copy the [example stack file](support/docker/production/docker-stack.example.yml) for peertube: | ||
328 | |||
329 | scp support/docker/production/docker-stack.example.yml root@your-server:/path/to/your/swarm-config/peertube.yml | ||
330 | |||
331 | 2. Have a look at the file and adjust the variables to your need. | ||
332 | |||
333 | 3. Deploy the stack: | ||
334 | |||
335 | docker stack deploy -c peertube.yml peertube | ||