Nexus3 Repoistory

Nexus3 Repoistory

  1. 创建nexus3用户

    useradd -m nexus3

  2. 编写docker-compose.yaml

    services:
      nexus3-repoistory:
          image: sonatype/nexus3
          container_name: nexus3-repoistory
          environment:
            - TZ=Asia/Shanghai
            - INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx2g
          volumes:
            - /home/nexus3/data:/nexus-data
          restart: always
          network_mode: host
  3. 设置HTTP代理

    image

  4. 设置docker远程仓库

    image

    image

参考文档