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/
  • 相关阅读:
    Oracle函数题
    多态
    继承
    封装
    属性和修饰符
    方法重载
    构造方法
    类与实例
    SQL Server 2005 To Oracle
    Toad for Oracle 使用文档
  • 原文地址:https://www.cnblogs.com/xpengp/p/14926818.html
Copyright © 2011-2022 走看看