From 1d07e659975e8df02353156cad61e0cbf6286060 Mon Sep 17 00:00:00 2001 From: markpeterfejes Date: Wed, 5 Jul 2017 09:47:29 +0200 Subject: [PATCH] Added documentation to the PROTOCOL configuration --- wiki/docker.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wiki/docker.md b/wiki/docker.md index 5d3d25c52..a1b6cc7be 100644 --- a/wiki/docker.md +++ b/wiki/docker.md @@ -62,6 +62,16 @@ PORT=5000; docker run -it --rm --name verdaccio \ verdaccio/verdaccio ``` +## Using HTTPS with Docker +You can configure the protocol verdaccio is going to listen on, similarly to the port configuration. +You have to overwrite the default value("http") of the `PROTOCOL` environment variable to "https", after you specified the certificates in the config.yaml. + +```bash +PROTOCOL=https; docker run -it --rm --name verdaccio \ + --env PROTOCOL -p 4873:4873 + verdaccio/verdaccio +``` + ## Using docker-compose 1. Get the latest version of [docker-compose](https://github.com/docker/compose).