# nexus-docker **Repository Path**: exppoc/nexus-docker ## Basic Information - **Project Name**: nexus-docker - **Description**: docker 一键部署 nexus 仓库 - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-02-16 - **Last Updated**: 2023-02-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nexus-docker > docker 一键部署 nexus 仓库 ------ ## 环境要求 ![](https://img.shields.io/badge/Platform-Linux%20amd64-brightgreen.svg) ![](https://img.shields.io/badge/Platform-Windows%20x64-brightgreen.svg) ## 目录结构说明 ``` nexus-docker ├── nexus2 │ ├── Dockerfile ............. [nexus2 镜像脚本] │ └── sonatype-work .......... [nexus2 仓库数据] ├── nexus3 │ └── sonatype-work .......... [nexus3 仓库数据] ├── .gitignore ├── LICENSE .................... [开源协议] ├── docker-compose.yml ......... [docker 编排剧本] └── README.md .................. [此 README 说明] ``` ## 部署步骤 - 宿主机安装 docker、docker-compose - 下载仓库: `git clone https://github.com/lyy289065406/nexus-docker /usr/local/nexus-docker` - 打开仓库目录: `cd /usr/local/nexus-docker` - 构建镜像并运行: - 只运行 Nexus 2 : `./run.ps1 -v 2` 或 `./run.sh -v 2` - 只运行 Nexus 3 : `./run.ps1 -v 3` 或 `./run.sh -v 3` - 运行 Nexus 2 和 Nexus 3 : `./run.ps1` 或 `./run.sh` - 启动后,访问 [`http://localhost:8082`](http://localhost:8082) 打开 Nexus2,访问 [`http://localhost:8083`](http://localhost:8083) 打开 Nexus3 - Nexus2 初始登录账密为 `admin / admin123` - Nexus3 初始登录账号为 `admin`,随机密码存储在 `./nexus/sonatype-work-3/admin.password` ## 分支说明 - master: 空 Nexus 仓库,未初始化 - produce: 含有本人发布构件的 Nexus 仓库