diff options
author | kaiyou <pierre@jaury.eu> | 2018-01-29 08:52:20 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-29 08:52:20 +0100 |
commit | e8395f027b6c3e3f757c740e35b20e76c51b03bd (patch) | |
tree | ee0e761357b7407b6992600342306669de880689 /support/doc | |
parent | 8dfd8fd7ca376e7898c912bb985a7a4a997cd966 (diff) | |
download | PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.tar.gz PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.tar.zst PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.zip |
Add production Alpine and Debian Stretch Docker images (#225)
* First pass at a (swarm-compatible) docker image
Uses an existing traefik server as a https reverse proxy.
* Add example config for a Docker swarm deployment
* Point to traefik config for docker compose setup
* Clarify that traefik is needed for the example config
* Use node:8-stretch base image and don't install yarn
(The base image already contains yarn.)
* Initial commit for an Alpine Docker image
* Fix docker volume path
* Merge #213 and #225 and move files around
* Remove unnecessary dependencies from the alpine build
* Update Dockerfiles to match install path, config path, etc.
* Update the configuration in the example compose file
* Update the configuration in the example swarm file
* Remove the declared networks and volumes from the compose example, which are not strictly required
* Update attachment path in the documentation
* Display traefik as a suggestion and not a required dependency
* Update the Docker ignored files
* Fix typos reported in #225
* Move production Dockerfiles to a production directory
* Add the redis configuration settings
* Add Docker files to the dockerignore
* Make the signup limit configurable
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/production.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index c18b4ead0..ae7f3e0f6 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -315,3 +315,21 @@ $ 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" | 315 | pg_restore -U peertube -c -d peertube_prod "$SQL_BACKUP_PATH" |
316 | sudo systemctl restart peertube | 316 | sudo systemctl restart peertube |
317 | ``` | 317 | ``` |
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 | ||