zoukankan      html  css  js  c++  java
  • NPM 私有仓库搭建

    1. 挂载目录配置

    .
    pm-registry
    ├─docker-compose.yaml
    ├─verdaccio
    |     ├─storage
    |     ├─plugins
    |     ├─conf
    |     |  ├─config.yaml
    

    2. config.yaml 配置

    storage: /verdaccio/storage
    plugins: /verdaccio/plugins
    web:
      title: Verdaccio
    auth:
      htpasswd:
        file: ./htpasswd
    uplinks:
      npmjs:
        url: https://registry.npmjs.org/                                
    packages:
      '@*/*':
        access: $all
        publish: $authenticated
        unpublish: $authenticated
        proxy: npmjs
      '**':
        access: $all
        publish: $authenticated
        unpublish: $authenticated
        proxy: npmjs
    middlewares:
      audit:
        enabled: true
    logs:
      - {type: stdout, format: pretty, level: http}
    

    3. docker-compose.yaml 配置

    version: '3.6'
    services:
      npm-registry:
        image: verdaccio/verdaccio
        ports:
        - 4873:4873
        restart: always
        volumes: 
           - ./verdaccio/conf:/verdaccio/conf
           - ./verdaccio/storage:/verdaccio/storage
           - ./verdaccio/plugins:/verdaccio/plugins
    volumes:
      db_data:
    

    NOTE

    原博客链接:https://www.cnblogs.com/xpengp/
  • 相关阅读:
    第六周作业
    2019第四周作业(基础作业+挑战作业)
    第三周作业
    2019第二周基础作业
    求最大值及下标值
    查找整数
    学期总结
    打印沙漏
    币值转换
    远程连接centos7的mysql5.7+ 更改iptables方法
  • 原文地址:https://www.cnblogs.com/xpengp/p/14926818.html
Copyright © 2011-2022 走看看