User Tools

Site Tools


wiki:verdaccio_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:verdaccio_installation [2021/07/23 10:25] – add Using docker volume antisawiki:verdaccio_installation [2021/07/23 15:27] (current) – [Apache reverse proxy config] antisa
Line 64: Line 64:
 [[https://docs.docker.com/storage/volumes/|Docker volume]] is the recommended method. [[https://docs.docker.com/storage/volumes/|Docker volume]] is the recommended method.
  
-Create volume:+Create volumes:
   docker volume create verdaccio   docker volume create verdaccio
 +  docker volume create verdaccio-storage
  
 Run with volume: Run with volume:
Line 72: Line 73:
     --publish 4873:4873 \     --publish 4873:4873 \
     --mount source=verdaccio,target=/verdaccio \     --mount source=verdaccio,target=/verdaccio \
-    --name verdaccio_vol \+    --mount source=verdaccio-storage,target=/verdaccio/storage \ 
 +    --name verdaccio \
     verdaccio/verdaccio     verdaccio/verdaccio
 </code> </code>
  
-Set correct path to htpasswd file in ///var/lib/docker/volumes/verdaccio-test/_data/conf/config.yml//+Set correct path to htpasswd file in ///var/lib/docker/volumes/verdaccio/_data/conf/config.yml//
 <code yml> <code yml>
 ... ...
Line 91: Line 93:
  
 ===== Apache reverse proxy config ===== ===== Apache reverse proxy config =====
 +Enable required apache modules:
 +
 +  a2enmod proxy proxy_http proxy_balancer ssl rewrite
  
 <code apache> <code apache>
Line 148: Line 153:
  
 ====== See also ====== ====== See also ======
 +  * [[wiki:verdaccio_vanilla_install|Verdaccio vanilla install]]
 ====== References ====== ====== References ======
   * https://blog.bitsrc.io/how-to-set-up-a-private-npm-registry-locally-1065e6790796   * https://blog.bitsrc.io/how-to-set-up-a-private-npm-registry-locally-1065e6790796
wiki/verdaccio_installation.1627028755.txt.gz · Last modified: 2021/07/23 10:25 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki