-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
202 lines (188 loc) · 6.01 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
services:
jenkins:
build: jenkins
networks:
- omero-network
user: ${USER_ID}
volumes:
- ./home:/var/jenkins_home
environment:
- JENKINS_OPTS= --prefix=${JENKINS_PREFIX} --argumentsRealm.passwd.${JENKINS_USERNAME}=${JENKINS_PASSWORD} --argumentsRealm.roles.${JENKINS_USERNAME}=admin
pg:
image: postgres:${POSTGRES_VERSION}
networks:
- omero-network
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}5432"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
testintegration:
build:
context: ./slave
dockerfile: Dockerfile
networks:
- omero-network
volumes:
- ./slave:/home/omero
- ${REPO_CONFIG}:${REPO_CONFIG}
- ${REPO_IMPORT}:${REPO_IMPORT}:ro
environment:
- SLAVE_NAME=testintegration
- SLAVE_EXECUTORS=2
- SLAVE_PARAMS=-labels rocky9 -labels ice36 -labels java11 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
- WEB_PREFIX
- REPO_CONFIG
extra_hosts:
- "testintegration:127.0.0.1"
ports:
- "${OMERO_SERVER_TEST_SSL}14064"
- "${OMERO_SERVER_TEST_TCP}14063"
ulimits:
nofile:
soft: 8192
hard: 65536
omero:
build:
context: ./server
dockerfile: Dockerfile
networks:
- omero-network
volumes:
- ./server:/home/omero
- ${REPO_IMPORT}:${REPO_IMPORT}:ro
environment:
- SLAVE_NAME=omero
- SLAVE_EXECUTORS=2
- SLAVE_PARAMS=-labels rocky9 -labels ice36 -labels java11 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
- WEBHOST=http://nginx${WEB_PREFIX}
ports:
- "${OMERO_SERVER_SSL}4064"
- "${OMERO_SERVER_TCP}4063"
ulimits:
nofile:
soft: 8192
hard: 65536
web:
build:
context: ./web
dockerfile: Dockerfile
networks:
- omero-network
volumes:
- ./web:/home/omero
- ./nginx/conf.d:/home/omero/nginx
environment:
- SLAVE_NAME=web
- SLAVE_EXECUTORS=2
- SLAVE_PARAMS= -labels rocky9 -labels ice36 -labels java11 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
- WEB_PREFIX
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
networks:
- omero-network
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./web/static:/home/omero/static
- ./nginx/log:/var/log/nginx
- ./nginx/sslcert:/etc/nginx/ssl
environment:
- SLAVE_NAME=nginx
- SLAVE_PARAMS=-labels rocky9 -labels java11 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
ports:
- "${NGINX_PORT}80"
- "${NGINX_SSL_PORT}443"
nginxjenkins:
image: nginx:${NGINX_VERSION}
networks:
- omero-network
volumes:
- ./jenkins/conf.d:/etc/nginx/conf.d
- ./jenkins/sslcert:/etc/nginx/ssl
ports:
- "${NGINXJENKINS_HTTP_PORT}80"
- "${NGINXJENKINS_SSL_PORT}443"
redis:
image: redis
networks:
- omero-network
seleniumhub:
image: selenium/hub
networks:
- omero-network
environment:
- GRID_TIMEOUT=0
ports:
- "4444"
seleniumfirefox:
image: selenium/node-firefox
networks:
- omero-network
environment:
- HUB_PORT_4444_TCP_ADDR=seleniumhub
- HUB_PORT_4444_TCP_PORT=4444
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1080
- SCREEN_DEPTH=24
- SE_EVENT_BUS_HOST=seleniumhub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
depends_on:
- seleniumhub
seleniumchrome:
image: selenium/node-chrome
networks:
- omero-network
environment:
- HUB_PORT_4444_TCP_ADDR=seleniumhub
- HUB_PORT_4444_TCP_PORT=4444
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1080
- SCREEN_DEPTH=24
- SE_EVENT_BUS_HOST=seleniumhub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
depends_on:
- seleniumhub
docker:
build: docker
networks:
- omero-network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${REPO_CURATED}:${REPO_CURATED}:ro
- ${REPO_CONFIG}:${REPO_CONFIG}:ro
environment:
- SLAVE_NAME=docker
- SLAVE_PARAMS=-labels docker -disableClientsUniqueId -executors ${DOCKER_EXECUTORS}
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
- REPO_CURATED
- REPO_CONFIG
nexus:
image: sonatype/nexus3:3.59.0
user: ${USER_ID}
networks:
- omero-network
volumes:
- ./nexus-data:/nexus-data
ports:
# TODO: Remove all ports when we can configure nexus automatically
- 8081
environment:
# Needed so nexus can be proxied under /nexus
# Note additional configuration to set the full base url in Nexus
# may be required if running on a non-standard http/https port
NEXUS_CONTEXT: nexus
networks:
omero-network:
# If devspace fails and your network has a non-standard MTU this may
# need to be set if auto-detection fails
driver_opts:
com.docker.network.driver.mtu: 1450