diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-30 16:53:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-30 17:06:21 +0100 |
commit | afd4ee86ddb97f8d49585fddd318bedcd3ad55b8 (patch) | |
tree | fae625fc92ba84936a063275dac122c1f4e8eb46 /support/doc/docker.md | |
parent | 83d4aba676ce376fe68ff17e7d92b037b108c2f1 (diff) | |
download | PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.gz PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.zst PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.zip |
Remove traefik docker support
Diffstat (limited to 'support/doc/docker.md')
-rw-r--r-- | support/doc/docker.md | 27 |
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 |
57 | intuited from usage. | 57 | intuited from usage. |
58 | 58 | ||
59 | #### Testing local Docker setup | 59 | #### Webserver |
60 | 60 | ||
61 | To 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 | |||
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. | ||
65 | |||
66 | It will also generate a TLS certificate at startup and schedule a renew | ||
67 | |||
68 | ```shell | ||
69 | mkdir -p docker-volume/nginx | ||
70 | curl https://raw.githubusercontent.com/Chocobozzz/PeerTube/develop/support/nginx/peertube > docker-volume/nginx/peertube | ||
62 | ``` | 71 | ``` |
63 | 127.0.0.1 localhost mydomain.tld | 72 | |
73 | You need to manually generate the first SSL/TLS certificate using Let's Encrypt: | ||
74 | |||
75 | ```shell | ||
76 | 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 | ||
64 | ``` | 78 | ``` |
65 | 79 | ||
66 | #### You can use the regular `up` command to set it up | 80 | The docker-compose will automatically renew this certificate and reload nginx. |
81 | |||
82 | |||
83 | #### Test your setup | ||
84 | |||
85 | Run your containers: | ||
67 | 86 | ||
68 | ```shell | 87 | ```shell |
69 | docker-compose up | 88 | docker-compose up |