forked from ome/devspace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
162 lines (147 loc) · 4.32 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
version: "3"
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
ports:
- "8080:8080"
git:
build: git
volumes:
- /src
command: 'true'
pg:
image: postgres
networks:
- omero-network
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
testintegration:
build:
context: ./slave
dockerfile: Dockerfile
networks:
- omero-network
volumes:
- ./slave:/home/omero
- ${REPO_CONFIG}:${REPO_CONFIG}
environment:
- SLAVE_NAME=testintegration
- SLAVE_EXECUTORS=2
- SLAVE_PARAMS=-labels centos7 -labels ice36 -labels java18 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
- WEB_PREFIX
- REPO_CONFIG
extra_hosts:
- "testintegration:127.0.0.1"
ports:
- "14064:14064"
- "14063:14064"
omero:
build:
context: ./server
dockerfile: Dockerfile
networks:
- omero-network
volumes:
- ./server:/home/omero
environment:
- SLAVE_NAME=omero
- SLAVE_EXECUTORS=2
- SLAVE_PARAMS=-labels centos7 -labels ice36 -labels java18 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
- WEBHOST=http://nginx${WEB_PREFIX}
ports:
- "4064:4064"
- "4063:4063"
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 centos7 -labels ice36 -labels java18 -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 centos7 -labels java18 -disableClientsUniqueId
- JENKINS_MASTER=${JENKINS_BASE}${JENKINS_PREFIX}
ports:
- "80:80"
nginxjenkins:
image: nginx:1.10
networks:
- omero-network
volumes:
- ./jenkins/conf.d:/etc/nginx/conf.d
- ./jenkins/sslcert:/etc/nginx/ssl
ports:
- "443: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
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
depends_on:
- seleniumhub
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