version: '2' services: nexus: image: sonatype/nexus3:latest ports: - 8081 volumes: - nexus-data:/nexus-data labels: io.rancher.container.pull_image: always traefik.frontend.rule: Host:${DOMAINS} traefik.backend: ${TRAEFIK_BACKEND} traefik.enable: true traefik.port: 8081 volumes: nexus-data: driver: rancher-nfs driver_opts: mountOpts: all_squash,anonuid=200,anongid=200 onRemove: purge