forked from AdaptiveConsulting/nexus-casc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# Useful for local debugging of the scripts.
version: '3.7'
secrets:
password_johndoe:
file: ./password_johndoe
services:
nexus:
image: 'sonatype/nexus3:${NEXUS_DOCKER_VERSION}'
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"
networks:
- 'nexus'
ports:
# - '5005:5005'
- '${NEXUS_UI_PORT}:8081'
# - '18090:18090'
# - '18091:18091'
secrets:
- password_johndoe
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- './default-nexus.yml:/opt/nexus.yml:ro'
- './target/nexus-casc-plugin-${PLUGIN_VERSION}-bundle.kar:/opt/sonatype/nexus/deploy/nexus-casc-plugin-${PLUGIN_VERSION}-bundle.kar:ro'
- 'nexus-data:/nexus-data'
volumes:
nexus-data:
networks:
nexus: