version: '3'

services:
  nexus:
    image: sonatype/nexus3:3.67.0
    container_name: nexus
    ports:
      - 8081:8081
      - 9081:9081
      - 9082:9082
      - 9083:9083
    volumes:
      - ./data:/nexus-data
      - /etc/resolv.conf:/etc/resolv.conf:ro
    environment:
      - NEXUS_CONTEXT=nexus
    ```

    访问 http://192.168.1.100:8081/nexus