-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
96 lines (89 loc) · 2.1 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
version: '2'
services:
postgres:
image: postgres:15
environment:
POSTGRES_PASSWORD: pa55w0rd
conjur:
image: cyberark/conjur:latest
command: server -a cucumber
environment:
CONJUR_ACCOUNT: cucumber
PORT: 80
DATABASE_URL: postgres://postgres:pa55w0rd@postgres/postgres
CONJUR_DATA_KEY: "W0BuL8iTr/7QvtjIluJbrb5LDAnmXzmcpxkqihO3dXA="
RAILS_ENV: development
ports:
- "80:80"
depends_on:
- postgres
# Create EE container
cuke-master:
image: registry.tld/conjur-appliance-cuke-master:5.0-stable
ports:
- "9443:443"
- "5432:5432"
- "1999:1999"
security_opt:
- "seccomp:unconfined"
conjur-proxy-nginx:
build:
context: .
dockerfile: Dockerfile.nginx
entrypoint: nginx-debug -g 'daemon off;'
environment:
TERM: xterm
ports:
- "8080:8080"
- "8443:8443"
depends_on:
- conjur
- client
client:
image: cyberark/conjur-cli:5
volumes:
- ./test-cert:/test-cert
entrypoint: sleep
command: infinity
environment:
CONJUR_APPLIANCE_URL:
CONJUR_ACCOUNT: cucumber
CONJUR_AUTHN_LOGIN: admin
test:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ./target:/conjurinc/api-java/target
environment:
CONJUR_APPLIANCE_URL: http://conjur
CONJUR_ACCOUNT: cucumber
# Spin up container for EE testing
test-dap:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ./target:/conjurinc/api-java/target
- ./test-cert:/test-cert
entrypoint: sleep
command: infinity
environment:
CONJUR_APPLIANCE_URL: https://cuke-master
CONJUR_ACCOUNT: cucumber
depends_on:
- cuke-master
test-https:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ./target:/conjurinc/api-java/target
- ./test-cert:/test-cert
entrypoint: sleep
command: infinity
environment:
CONJUR_APPLIANCE_URL: https://conjur-proxy-nginx
CONJUR_ACCOUNT: cucumber
depends_on:
- conjur-proxy-nginx