sonatype/nexus3 镜像

#
# mkdir -p /srv/nexus
#
# export NEXUS_HOME=/srv/nexus  && chown -R 200 $NEXUS_HOME && docker compose up -d
# export NEXUS_HOME=`pwd`       && chown -R 200 $NEXUS_HOME && echo $NEXUS_HOME && docker compose up -d
# 默认密码位置:
# cat /srv/nexus/nexus-data/admin.password && echo
# cat ./nexus-data/admin.password && echo
#
services:
  nexus:
    # image: 'sonatype/nexus3:3.71.0'
    image: 'registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nexus3:3.71.0'
    restart: always
    ports:
      - '48081:8081'
      - '48443:8443'
      - '48500-48550:48500-48550'
    volumes:
      - '$NEXUS_HOME/nexus-data:/nexus-data'
    container_name: nexus
# 创建容器
sudo mkdir -p /nexus-data
sudo chown -R 200 /nexus-data

sudo docker run \
  -itd \
  --restart always \
  --name nexus3-3.71.0 \
  -p 48081:8081 \
  -p 48443:8443 \
  -p 48500-48550:48500-48550 \
  -v /nexus-data:/nexus-data \
  -d registry.cn-qingdao.aliyuncs.com/xuxiaoweicomcn/nexus3:3.71.0

# 默认密码位置:cat /nexus-data/admin.password && echo

个人使用部分配置

Name Format Type HTTP HTTPS Version policy Remote storage
docker-hosted docker hosted 48500 48501
maven-aliyun maven2 proxy Release https://maven.aliyun.com/repository/public
maven-apache maven2 proxy Release Central Repository:
maven-apache-releases maven2 proxy Release Index of /repositories/releases
maven-apache-snapshots maven2 proxy Snapshot Index of /repositories/snapshots
maven-central maven2 proxy Release Central Repository:
maven-huaweicloud maven2 proxy Release https://mirrors.huaweicloud.com/repository/maven/
maven-public maven2 group Mixed
maven-releases maven2 hosted Release
maven-shibboleth-releases maven2 proxy Release Index of /maven/releases
maven-shibboleth-snapshots maven2 proxy Snapshot Index of /maven/snapshots
maven-snapshots maven2 hosted Snapshot
maven-sonatype-public maven2 proxy Mixed https://oss.sonatype.org/content/repositories/public/
maven-sonatype-public-s01 maven2 proxy Mixed Index of /repositories/public
maven-spring-snapshots maven2 proxy Snapshot https://repo.spring.io/snapshot
maven-tencent maven2 proxy Release Repository - Nexus Repository Manager
maven-topiam maven2 proxy Mixed https://pingfangushi-maven.pkg.coding.net/repository/topiam/public/
raw raw hosted
raw-gradle raw proxy https://mirrors.cloud.tencent.com/gradle

文档