From 0525ebfda342830e94dbad297f673481f0bee4bc Mon Sep 17 00:00:00 2001 From: David Goldfarb Date: Wed, 27 Oct 2021 19:07:28 +0300 Subject: [PATCH] Explain the need to supply config file in Docker mount (#2598) Co-authored-by: Juan Picado --- website/docs/docker.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/docker.md b/website/docs/docker.md index b83983fa4..b7dea0155 100644 --- a/website/docs/docker.md +++ b/website/docs/docker.md @@ -51,7 +51,9 @@ The above line will pull the latest prebuilt image from dockerhub, if you haven' If you have [build an image locally](#build-your-own-docker-image) use `verdaccio` as the last argument. -You can use `-v` to bind mount `conf`, `storage` and `plugins` to the hosts filesystem: +You can use `-v` to bind mount `conf`, `storage` and `plugins` to the hosts filesystem (example below). + +Note that if you do mount conf like this, that you will first need to supply a copy of config.yaml in that directory; the Docker container will not start properly if this file is missing. You can copy this file initially from https://github.com/verdaccio/verdaccio/blob/5.x/conf/docker.yaml. However, note the security warnings in that file; you will definitely want to lock it down in production. ```bash V_PATH=/path/for/verdaccio; docker run -it --rm --name verdaccio \