Docker安装Nexus

Docker安装Nexus

Scroll Down

Docker Nexus maven私服的安装

docker-compose.yml 文件的配置

version: "3.1"
services:
   nexus:
      image: sonatype/nexus3
      container_name: nexus3
      hostname: nexus3
      environment:
         - TZ=Asia/Shanghai
      volumes:
         - ./data:/nexus-data
      ports:
         - "8081:8081"
         - "8082:8082"
         - "8083:8083"
      restart: always
      networks:
        nexus_networks:
            aliases:
               - nexus_network
networks:
   nexus_networks: 

docker hub nexus

docker nexus3

如果无法启动请查看日志,如果报权限不足请赋权限

chmod 777 data