Fix docker nginx container if peertube restarts

This commit is contained in:
Chocobozzz
2021-01-05 09:52:14 +01:00
parent 2f03d6dc5e
commit 0a0e0d082f
2 changed files with 6 additions and 3 deletions

View File

@@ -63,8 +63,6 @@ intuited from usage.
Install the template that the nginx container will use.
The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file.
It will also generate a TLS certificate at startup and schedule a renew
```shell
mkdir -p docker-volume/nginx
curl https://raw.githubusercontent.com/Chocobozzz/PeerTube/develop/support/nginx/peertube > docker-volume/nginx/peertube
@@ -77,7 +75,7 @@ mkdir -p docker-volume/certbot
docker run -it --rm --name certbot -p 80:80 -v "$(pwd)/docker-volume/certbot/conf:/etc/letsencrypt" certbot/certbot certonly --standalone
```
The docker-compose will automatically renew this certificate and reload nginx.
A dedicated container in the docker-compose will automatically renew this certificate and reload nginx.
#### Test your setup