目录

Nexus3 使用和部署

Nexus3 docker-compose 安装

创建外部存储

1
2
mkdir -p /data/nexus
chmod +777 -R /data/nexus

运行 docker-compose

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
version: '3'
services:
  nexus3:
    image: sonatype/nexus3:3.42.0
    container_name: nexus3
    ports:
      - 8081:8081
      - 5000:5000
    volumes:
      - /data/nexus:/nexus-data
    environment:
      - INSTALL4J_ADD_VM_PARAMS=-Xms1024m -Xmx1024m -XX:MaxDirectMemorySize=1024m -Djava.util.prefs.userRoot=/some-other-dir
    restart: always
    # 赋予外部root权限
    privileged: true

docker-compose up -d 运行 docker-compose