forked from smithj/nexus-platform-reference
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-linux.yml
executable file
·148 lines (141 loc) · 3.93 KB
/
docker-compose-linux.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3'
services:
nginx-proxy:
build: ./nginx
image: 'sonatype_partner/sonatype_nginx-proxy:2.6.1'
user: root
ports:
- '443:443'
- '5000:5000'
- '8011:8011'
command:
- nginx
- '-g'
- daemon off;
depends_on:
- iq-server
- nexus
nexus:
image: 'sonatype/nexus3:latest'
user: root
volumes:
- '~/.demo-pv/nexus-data:/nexus-data'
ports:
- '8081:8081'
- '18443:18443'
iq-server:
image: 'sonatype_partner/my-iq-server:latest'
user: root
build: ./iq-server
volumes:
- '~/.demo-pv/iq-data:/sonatype-work'
- '~/.demo-pv/iq-logs:/opt/sonatype/nexus-iq-server/log'
ports:
- '8070:8070'
- '8071:8071'
# Docker based build jobs that want to use NXRM need to be outside of docker
# network so they can hit the Nginx server for ingress and routing.
jenkins:
image: jenkinsci/blueocean:1.24.6
user: root
volumes:
- '~/.demo-pv/jenkins:/var/jenkins_home'
- '/var/run/docker.sock:/var/run/docker.sock'
ports:
- '9080:8080'
- '50000:50000'
# see Nexus IQ for Jira https://help.sonatype.com/integrations/nexus-iq-for-jira
####
jira:
image: 'atlassian/jira-software:8.5.3' # https://hub.docker.com/r/atlassian/jira-software
user: root
volumes:
- '~/.demo-pv/jira-data:/var/atlassian/application-data/jira:delegated'
ports:
- '8080:8080'
# see Nexus IQ for Jira https://help.sonatype.com/integrations/nexus-iq-for-scm
#####
bitbucket:
image: 'atlassian/bitbucket-server:7.0.2-jdk11' # https://hub.docker.com/r/atlassian/bitbucket-server
user: root
volumes:
- '~/.demo-pv/bitbucket-data:/var/atlassian/application-data/bitbucketl:delegated'
ports:
- '7990:7990'
- '7999:7999'
#
# listener:
# image: my-webhook-listener:1.0.0
# build: ./listener
# volumes:
# - /usr/local/bin/docker:/usr/bin/docker
# - /var/run/docker.sock:/var/run/docker.sock
# ports:
# - "9000:9000"
# command:
# - -verbose
# - -hotreload
# - -hooks=/etc/webhook/test.json
# - -hooks=/etc/webhook/dockerHub-scan.json
# - -hooks=/etc/webhook/nxrm-consume.json
# - -hooks=/etc/webhook/iq-consume.json
# - -hooks=/etc/webhook/quay-consume.json
# victoria:
# image: 'victoria:1.0.0-60'
# build: ./victoria
# volumes:
# - '~/.demo-pv/victoria/db:/home/nexus/db'
# - '~/.demo-pv/victoria/log:/home/nexus/log'
# - '~/.demo-pv/victoria/tmp:/home/nexus/tmp'
# ports:
# - '8090:8090'
# - '8091:8091'
# depends_on:
# - iq-server
#
# anchore-engine:
# image: docker.io/anchore/anchore-engine:latest
# #privileged: true
# depends_on:
# - anchore-db
# ports:
# - "8228:8228"
# - "8338:8338"
# volumes:
# - ~/.demo-pv/aevolume/config:/config/:z
# logging:
# driver: "json-file"
# options:
# max-size: 100m
# environment:
# # NOTE: this should be set to the same name as this service (e.g. anchore-engine)
# - ANCHORE_HOST_ID=dockerhostid-anchore-engine
# - ANCHORE_ENDPOINT_HOSTNAME=anchore-engine
# anchore-db:
# image: "postgres:9"
# volumes:
# - ~/.demo-pv/aevolume/db:/var/lib/postgresql/data/pgdata/:z
# environment:
# - POSTGRES_PASSWORD=mysecretpassword
# - PGDATA=/var/lib/postgresql/data/pgdata/
# logging:
# driver: "json-file"
# options:
# max-size: 100m
# #uncomment to expose a port to allow direct/external access to the DB, for debugging
# #ports:
# # - "2345:5432"
# athens:
# image: gomods/athens:v0.4.0
# restart: always
# ports:
# - 3000:3000
# volumes:
# - ~/.demo-pv/athens:/usr/local/athens
# environment:
# - ATHENS_STORAGE_TYPE=disk
# - ATHENS_DISK_STORAGE_ROOT=/usr/local/athens
#
# go:
# build: ./golang/
# image: sonatype-partner/golang:compose