nexus部署
...小于 1 分钟
nexus部署
使用docker-compose部署nexus
查看使用方式
1.安装docker并配置docker-compose2.创建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