diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-05 09:52:14 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-05 09:52:14 +0100 |
commit | 0a0e0d082f778fca86ab73313c130ef92b5f840d (patch) | |
tree | a97a19162e497770449d594ac70c85b469644708 /support/doc/docker.md | |
parent | 2f03d6dc5e1ff6a8f28cba566f56e72bfb9f3fc8 (diff) | |
download | PeerTube-0a0e0d082f778fca86ab73313c130ef92b5f840d.tar.gz PeerTube-0a0e0d082f778fca86ab73313c130ef92b5f840d.tar.zst PeerTube-0a0e0d082f778fca86ab73313c130ef92b5f840d.zip |
Fix docker nginx container if peertube restarts
Diffstat (limited to 'support/doc/docker.md')
-rw-r--r-- | support/doc/docker.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/support/doc/docker.md b/support/doc/docker.md index 36da94f55..e9315293f 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md | |||
@@ -63,8 +63,6 @@ intuited from usage. | |||
63 | Install the template that the nginx container will use. | 63 | Install the template that the nginx container will use. |
64 | The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file. | 64 | The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file. |
65 | 65 | ||
66 | It will also generate a TLS certificate at startup and schedule a renew | ||
67 | |||
68 | ```shell | 66 | ```shell |
69 | mkdir -p docker-volume/nginx | 67 | mkdir -p docker-volume/nginx |
70 | curl https://raw.githubusercontent.com/Chocobozzz/PeerTube/develop/support/nginx/peertube > docker-volume/nginx/peertube | 68 | curl https://raw.githubusercontent.com/Chocobozzz/PeerTube/develop/support/nginx/peertube > docker-volume/nginx/peertube |
@@ -77,7 +75,7 @@ mkdir -p docker-volume/certbot | |||
77 | docker run -it --rm --name certbot -p 80:80 -v "$(pwd)/docker-volume/certbot/conf:/etc/letsencrypt" certbot/certbot certonly --standalone | 75 | docker run -it --rm --name certbot -p 80:80 -v "$(pwd)/docker-volume/certbot/conf:/etc/letsencrypt" certbot/certbot certonly --standalone |
78 | ``` | 76 | ``` |
79 | 77 | ||
80 | The docker-compose will automatically renew this certificate and reload nginx. | 78 | A dedicated container in the docker-compose will automatically renew this certificate and reload nginx. |
81 | 79 | ||
82 | 80 | ||
83 | #### Test your setup | 81 | #### Test your setup |