跳至主要內容

verdaccio部署

brinishness...小于 1 分钟Verdacciodockerverdaccio

verdaccio部署

使用docker-compose部署verdaccio

1.安装docker并配置docker-compose 查看使用方式

2.创建verdaccio目录

mkdir -p /data/env/verdaccio

3.授权目录为777 (不配置会导致无法存储镜像)

```bash
chmod -R 777 /data/env/verdaccio

3.映射目录配置 (附配置文件)

version: "3.6"
services:
  verdaccio:
    image: verdaccio/verdaccio
    container_name: verdaccio
    user: root
    privileged: true
    restart: always
    volumes:
      - /etc/localtime:/etc/localtime
      - /home/env/verdaccio/conf:/verdaccio/conf
      - /data/env/verdaccio/storage:/verdaccio/storage
      - /data/env/verdaccio/plugins:/verdaccio/plugins
    ports:
      - "7780:4873"

4.启动verdaccio

docker-compose up -d

5.访问verdaccio

http://ip:7780

6.完成verdaccio安装

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.5