1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
services: nexus: image: sonatype/nexus3:latest container_name: nexus restart: always environment: - NEXUS_CONTEXT=nexus volumes: - /var/nexus-data:/nexus-data networks: nexus_network: ipv4_address: 172.25.0.2 networks: nexus_network: name: nexus_network driver: bridge ipam: config: - subnet: 172.25.0.0/16 gateway: 172.25.0.1