version: '3.8' services: nexus: image: 'adphi/nexus3:3.41.1-casc' container_name: 'nexus' user: 'nexus' environment: BASE_URL: 'http://localhost:8081' NEXUS_SECURITY_RANDOMPASSWORD: 'false' NEXUS_CASC_CONFIG: '/opt/nexus.yml' # INSTALL4J_ADD_VM_PARAMS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" ports: - 8081:8081 expose: - 8081 volumes: - './default-nexus.yml:/opt/nexus.yml:ro' secrets: - password_johndoe - gpg_key_example - gpg_passphrase_example secrets: password_johndoe: file: ./password_johndoe gpg_key_example: file: ./gpg-example.key gpg_passphrase_example: file: ./gpg-example.passphrase