跳至主要內容

nexus部署

brinishness...小于 1 分钟Nexusdockernexusdocker-compose

nexus部署

使用docker-compose部署nexus

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

2.创建nexus目录

mkdir -p /data/env/nexus/data

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

version: "3.6"
services:
  nexus:
    image: sonatype/nexus3
    container_name: nexus
    privileged: true
    restart: always
    volumes:
      - /etc/localtime:/etc/localtime
      - /data/env/nexus/data:/nexus-data
    ports:
      - "7680:8081"
      - "7650:5000"

4.启动nexus

docker-compose up -d

5.访问nexus

http://ip:7680

6.获取初始密码

docker exec -it nexus cat /nexus-data/admin.password

7.修改密码

8.完成nexus安装

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