-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
304 lines (284 loc) · 7.91 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
services:
conjur-master.mycompany.local:
image: haproxy:alpine
networks:
dap_net:
ipv4_address: 12.16.23.10
ports:
- "${CONJUR_MASTER_PORT:-443}:443"
- "7000:7000"
expose:
- "1999"
- "5432"
volumes:
- ./system/haproxy/certs:/etc/ssl/certs
- ./files/haproxy/master:/usr/local/etc/haproxy
conjur-master-1.mycompany.local:
image: registry.tld/conjur-appliance:${VERSION:-5.0-stable}
shm_size: 1g
networks:
dap_net:
ipv4_address: 12.16.23.11
ports:
- "444:443"
expose:
- "443"
- "444"
- "1999"
- "5432"
environment:
TRUSTED_PROXIES: 123.123.1.1,123.5.1.1
CONJUR_AUTHENTICATORS: "${CONJUR_AUTHENTICATORS:-}"
security_opt:
- "seccomp:unconfined"
volumes:
- seeds:/opt/cyberark/dap/seeds
- ./system/backup:/opt/conjur/backup:Z
- ./system/configuration:/opt/cyberark/dap/configuration:Z
- ./system/logs/master-1:/var/log/conjur:Z
- ./files:/conjur_files
- ./artifacts/keycloak/fetch-certificate:/oauth/keycloak/scripts/fetch-certificate
- ./policy:/policy
conjur-master-2.mycompany.local:
image: registry.tld/conjur-appliance:${VERSION:-5.0-stable}
networks:
dap_net:
ipv4_address: 12.16.23.12
ports:
- "445:443"
expose:
- "443"
- "444"
- "1999"
- "5432"
security_opt:
- "seccomp:unconfined"
volumes:
- seeds:/opt/cyberark/dap/seeds
- ./system/backup:/opt/conjur/backup:Z
- ./system/configuration:/opt/cyberark/dap/configuration:Z
- ./system/logs/master-2:/var/log/conjur:Z
- ./files:/conjur_files
conjur-master-3.mycompany.local:
image: registry.tld/conjur-appliance:${VERSION:-5.0-stable}
networks:
dap_net:
ipv4_address: 12.16.23.13
ports:
- "446:443"
expose:
- "443"
- "444"
- "1999"
- "5432"
security_opt:
- "seccomp:unconfined"
volumes:
- seeds:/opt/cyberark/dap/seeds
- ./system/backup:/opt/conjur/backup:Z
- ./system/configuration:/opt/cyberark/dap/configuration:Z
- ./system/logs/master-3:/var/log/conjur:Z
- ./files:/conjur_files
conjur-master-4.mycompany.local:
image: registry.tld/conjur-appliance:${VERSION:-5.0-stable}
networks:
dap_net:
ipv4_address: 12.16.23.14
ports:
- "447:443"
expose:
- "443"
- "444"
- "1999"
- "5432"
security_opt:
- "seccomp:unconfined"
volumes:
- seeds:/opt/cyberark/dap/seeds
- ./system/backup:/opt/conjur/backup:Z
- ./system/configuration:/opt/cyberark/dap/configuration:Z
- ./system/logs/master-4:/var/log/conjur:Z
- ./files:/conjur_files
conjur-master-5.mycompany.local:
image: registry.tld/conjur-appliance:${VERSION:-5.0-stable}
networks:
dap_net:
ipv4_address: 12.16.23.15
ports:
- "448:443"
expose:
- "443"
- "444"
- "1999"
- "5432"
security_opt:
- "seccomp:unconfined"
volumes:
- seeds:/opt/cyberark/dap/seeds
- ./system/backup:/opt/conjur/backup:Z
- ./system/configuration:/opt/cyberark/dap/configuration:Z
- ./system/logs/master-5:/var/log/conjur:Z
- ./files:/conjur_files
conjur-follower.mycompany.local:
image: haproxy:alpine
networks:
dap_net:
ipv4_address: 12.16.23.16
ports:
- "80:80"
- "449:443"
- "7001:7000"
volumes:
- follower-certs:/etc/ssl/certs
- ./files/haproxy/follower:/usr/local/etc/haproxy
conjur-follower-1.mycompany.local:
image: registry.tld/conjur-appliance:${VERSION:-5.0-stable}
networks:
dap_net:
ipv4_address: 12.16.23.17
ports:
- "${CONJUR_FOLLOWER_PORT:-450}:443"
expose:
- "443"
- "444"
environment:
CONJUR_AUTHENTICATORS: "${CONJUR_AUTHENTICATORS:-}"
security_opt:
- "seccomp:unconfined"
volumes:
- seeds:/opt/cyberark/dap/seeds
- follower-certs:/opt/conjur/etc/ssl/
- ./system/backup:/opt/conjur/backup:Z
- ./system/configuration:/opt/cyberark/dap/configuration:Z
- ./system/logs/follower:/var/log/conjur:Z
- ./files:/conjur_files
client:
image: cyberark/conjur-cli:8
networks:
dap_net:
working_dir: /src/cli
environment:
CONJUR_APPLIANCE_URL: https://conjur-master.mycompany.local
CONJUR_ACCOUNT: demo
CONJUR_AUTHN_LOGIN: admin
volumes:
- .:/src/cli
- ./cli_cache/master:/root
k8s-follower-orchestrator:
build:
context: artifacts/k8s-follower-orchestrator
privileged: true
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./kubeconfig:/root/.kube/config
- /var/run/docker.sock:/var/run/docker.sock
- ./system/haproxy/certs:/etc/ssl/certs
follower-client:
image: cyberark/conjur-cli:8
networks:
dap_net:
working_dir: /src/cli
environment:
CONJUR_APPLIANCE_URL: https://conjur-follower.mycompany.local
CONJUR_ACCOUNT: demo
CONJUR_AUTHN_LOGIN: admin
volumes:
- .:/src/cli
- ./cli_cache/follower:/root
api-client:
build:
context: ./artifacts/api-client
networks:
dap_net:
working_dir: /src/
volumes:
- ./artifacts/api-client/api-script:/src/bin/api
- ./policy:/src/policy
certificate-generator:
build:
context: ./artifacts/certificate-generator
volumes:
- ./system/configuration/certificates:/src/certificates
policy-generator:
build:
context: ./artifacts/policy-generator
volumes:
- ./tools/performance-tests/k6/data:/data
unpopulated-secrets-generator:
build:
context: ./artifacts/unpopulated-secrets-generator
volumes:
- ./tools/performance-tests/k6/data:/data
authenticator-generator:
build:
context: ./artifacts/authenticator-generator
volumes:
- ./tools/performance-tests/k6/data:/data
k6:
build:
context: ./
dockerfile: ./tools/performance-tests/k6/Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
dap_net:
environment:
- K6_STATSD_ADDR=host.docker.internal:8125
volumes:
- ./tools/performance-tests/k6:/tools/performance-tests/k6
- ./files/conjur:/files/conjur
datadog:
image: datadog/agent:latest
networks:
dap_net:
deploy:
restart_policy:
condition: on-failure
environment:
- DD_SITE=datadoghq.com
- DD_API_KEY=${DD_API_KEY:-}
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=1
- DD_TAGS=${DD_TAGS:-}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
keycloak:
image: registry.tld/jboss/keycloak:4.3.0.Final
networks:
dap_net:
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_APP_USER=alice
- KEYCLOAK_APP_USER_PASSWORD=alice
- KEYCLOAK_SECOND_APP_USER=bob.somebody
- KEYCLOAK_SECOND_APP_USER_PASSWORD=bob
- KEYCLOAK_NON_CONJUR_APP_USER=not_in_conjur
- KEYCLOAK_NON_CONJUR_APP_USER_PASSWORD=not_in_conjur
- KEYCLOAK_NON_CONJUR_APP_USER_EMAIL=not_in_conjur
- DB_VENDOR=H2
- KEYCLOAK_CLIENT_ID=conjurClient
- KEYCLOAK_REDIRECT_URI=http://127.0.0.1:8888/callback
- KEYCLOAK_CLIENT_SECRET=1234
- KEYCLOAK_SCOPE=openid
ports:
- "7777:8080"
- "7788:8443"
volumes:
- ./artifacts/keycloak:/scripts
- ./artifacts/keycloak/standalone.xml:/opt/jboss/keycloak/standalone/configuration/standalone.xml
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 30s
timeout: 10s
retries: 5
volumes:
seeds:
follower-certs:
networks:
dap_net:
external: true