This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
170 lines (161 loc) · 4.19 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
version: '2'
services:
openssl:
image: svagi/openssl:latest
container_name: openssl_test
entrypoint:
- openssl
- req
- -newkey
- rsa:2048
- -days
- "365"
- -nodes
- -x509
- -config
- /tmp/conf/tls.conf
- -extensions
- v3_ca
- -keyout
- /tmp/conf/test_nginx.key
- -out
- /tmp/conf/test_nginx.crt
volumes:
- ${PWD}/test/test_config/https/:/tmp/conf
pg:
image: postgres:9.4
environment:
POSTGRES_HOST_AUTH_METHOD: trust
conjur:
image: cyberark/conjur:latest
command: server -a dev -f /policy/initial_policy.yml
environment:
CONJUR_DATA_KEY: 'OyXV68Mip14xj33huGaQKewmmS+gKtDlp6ECZ2iATpU='
DATABASE_URL: postgres://postgres@pg/postgres
RAILS_ENV: development
CONJUR_AUTHENTICATORS: authn-ldap/test-service,authn
LDAP_URI: ldap://ldap-server:389
LDAP_BASE: dc=conjur,dc=net
LDAP_BINDDN: cn=admin,dc=conjur,dc=net
LDAP_BINDPW: ldapsecret
LDAP_FILTER: (uid=%s)
ports:
- 80
volumes:
- ${PWD}/test/test_config:/policy:ro
depends_on:
- pg
- ldap-server
conjur-https:
image: nginx:alpine
ports:
- 443
- "443:443"
volumes:
- ${PWD}/test/test_config/https/:/tmp/conf
- ${PWD}/test/test_config/https/:/etc/nginx/tls/:ro
- ${PWD}/test/test_config/https/nginx.conf:/etc/nginx/nginx.conf:ro
- ${PWD}/test/test_config/https/conjur.conf:/etc/nginx/sites-enabled/conjur.conf:ro
- ${PWD}/test/test_config/https/dhparams.pem:/etc/nginx/dhparams.pem:ro
depends_on:
- conjur
conjur-cli:
image: cyberark/conjur-cli:5
entrypoint: [ "bash", "-c" ]
command: [ "sleep 999d" ]
depends_on:
- conjur
- conjur-https
ldap-server:
image: osixia/openldap
command: --copy-service --loglevel debug
hostname: ldap-server
environment:
LDAP_ORGANIZATION: CyberArk
LDAP_DOMAIN: conjur.net
LDAP_ADMIN_PASSWORD: ldapsecret
LDAP_TLS_CA_CRT_FILENAME: "ca-chain.cert.pem"
LDAP_TLS_CRT_FILENAME: "ldap-server.cert.pem"
LDAP_TLS_KEY_FILENAME: "ldap-server.key.pem"
LDAP_TLS_DH_PARAM_FILENAME: 'dhparam.pem'
LDAP_TLS_VERIFY_CLIENT: try
ports:
- "389:389"
volumes:
- ${PWD}/test/test_config/ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
- ${PWD}/test/test_config/ldap/certs:/container/service/slapd/assets/certs:ro
test:
privileged: true
build:
context: .
dockerfile: Dockerfile.test
command: ['sleep', '999d']
environment:
CONJUR_AUTHN_API_KEY: Null
DEBUG: Null
TEST_ENV: "True"
depends_on:
- conjur
- conjur-https
volumes:
- ${PWD}:/opt/cyberark-conjur-cli
conjur-appliance:
image: registry2.itci.conjur.net/conjur-appliance:5.0-stable
environment:
CONJUR_AUTHENTICATORS: authn-ldap/test-service,authn
LDAP_URI: ldap://ldap-server:389
LDAP_BASE: dc=conjur,dc=net
LDAP_BINDDN: cn=admin,dc=conjur,dc=net
LDAP_BINDPW: ldapsecret
LDAP_FILTER: (uid=%s)
ports:
- "444:443"
expose:
- "443"
- "444"
- "1999"
- "5432"
security_opt:
- "seccomp:unconfined"
depends_on:
- ldap-server
rhel8:
privileged: true
build:
context: .
dockerfile: Dockerfile.test.rhel8
command: ['sleep', '999d']
environment:
CONJUR_AUTHN_API_KEY: Null
PYTHON_KEYRING_BACKEND: Null
DEBUG: Null
TEST_ENV: "True"
SERVER_MODE: Null
LOGIN: Null
ADMIN_PASSWORD: Null
TEST_HOSTNAME: Null
ACCOUNT: Null
depends_on:
- conjur-appliance
volumes:
- ${PWD}:/opt/cyberark-conjur-cli
rhel7:
privileged: true
build:
context: .
dockerfile: Dockerfile.test.rhel7
command: ['sleep', '999d']
environment:
CONJUR_AUTHN_API_KEY: Null
PYTHON_KEYRING_BACKEND: Null
DEBUG: Null
TEST_ENV: "True"
SERVER_MODE: Null
LOGIN: Null
ADMIN_PASSWORD: Null
TEST_HOSTNAME: Null
ACCOUNT: Null
depends_on:
- conjur-appliance
volumes:
- ${PWD}:/opt/cyberark-conjur-cli