aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-30 16:53:11 +0100
committerChocobozzz <me@florianbigard.com>2020-12-30 17:06:21 +0100
commitafd4ee86ddb97f8d49585fddd318bedcd3ad55b8 (patch)
treefae625fc92ba84936a063275dac122c1f4e8eb46 /support/doc
parent83d4aba676ce376fe68ff17e7d92b037b108c2f1 (diff)
downloadPeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.gz
PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.zst
PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.zip
Remove traefik docker support
Diffstat (limited to 'support/doc')
-rw-r--r--support/doc/docker.md27
1 files changed, 23 insertions, 4 deletions
diff --git a/support/doc/docker.md b/support/doc/docker.md
index 6f61c38d0..36da94f55 100644
--- a/support/doc/docker.md
+++ b/support/doc/docker.md
@@ -56,14 +56,33 @@ Other environment variables are used in
56[/support/docker/production/config/custom-environment-variables.yaml](https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/config/custom-environment-variables.yaml) and can be 56[/support/docker/production/config/custom-environment-variables.yaml](https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/config/custom-environment-variables.yaml) and can be
57intuited from usage. 57intuited from usage.
58 58
59#### Testing local Docker setup 59#### Webserver
60 60
61To test locally your Docker setup, you must add your domain (`<MY DOMAIN>`) in `/etc/hosts`: 61*The docker compose file includes a configured web server. You can skip this part and comment the appropriate section in the docker compose if you use another webserver/proxy.*
62
63Install the template that the nginx container will use.
64The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file.
65
66It will also generate a TLS certificate at startup and schedule a renew
67
68```shell
69mkdir -p docker-volume/nginx
70curl https://raw.githubusercontent.com/Chocobozzz/PeerTube/develop/support/nginx/peertube > docker-volume/nginx/peertube
62``` 71```
63127.0.0.1 localhost mydomain.tld 72
73You need to manually generate the first SSL/TLS certificate using Let's Encrypt:
74
75```shell
76mkdir -p docker-volume/certbot
77docker run -it --rm --name certbot -p 80:80 -v "$(pwd)/docker-volume/certbot/conf:/etc/letsencrypt" certbot/certbot certonly --standalone
64``` 78```
65 79
66#### You can use the regular `up` command to set it up 80The docker-compose will automatically renew this certificate and reload nginx.
81
82
83#### Test your setup
84
85Run your containers:
67 86
68```shell 87```shell
69docker-compose up 88docker-compose up