Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.47 KB

File metadata and controls

70 lines (46 loc) · 1.47 KB

Verdaccio and https-portal Example

Run verdaccio under fully automated HTTPS server powered by Nginx, Let's Encrypt was never so easy. Using https-portal all is builtin and no need to extra configuration.

Prerequisites

In order to make it works, this is just a local setup, so you must update your host file.

On Mac

➜ sudo vi /etc/hosts  

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
127.0.0.1       example.com

Usage

To run the containers, run the following in this folder, it should starts the containers in dettach mode.

 docker-compose up -d

To recreate the nginx image you can force the build.

 docker-compose up --build -d

To force recreate the images.

docker-compose up --build --force-recreate  -d

To stop all containers

docker-compose stop

From your Javascript project

npm publish --registry https://example.com

NPM and Self-signed certificates

Be aware of disable strict SSL in ./npmrcconfig file as explained here.

npm config set strict-ssl false

Login

If you want to login into the Verdaccio instance created via these Docker Examples, please try:

Username: jpicado Password: jpicado