forked from sventschui/nexus-casc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
49 lines (45 loc) · 1.19 KB
/
docker-compose.yml
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
42
43
44
45
46
47
48
49
---
# Useful for local debugging of the scripts.
version: '3.8'
secrets:
password_johndoe:
file: ./password_johndoe
gpg_key_example:
file: ./gpg-example.key
gpg_passphrase_example:
file: ./gpg-example.passphrase
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'
expose:
- '${NEXUS_UI_PORT}'
secrets:
- password_johndoe
- gpg_key_example
- gpg_passphrase_example
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: