-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-credentials.yml
More file actions
21 lines (18 loc) · 957 Bytes
/
docker-compose-credentials.yml
File metadata and controls
21 lines (18 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
services:
credentialsgen:
image: stackql/stackqlsrvcertificates
build:
context: .
cache_from:
- stackql/stackql
- stackql/stackqlsrvcertificates
target: certificates
volumes:
- ./cicd/vol/srv/credentials:/opt/stackql/srv/credentials:rw
command:
- bash
- -c
- |
openssl req -x509 -keyout /opt/stackql/srv/credentials/pg_server_key.pem -out /opt/stackql/srv/credentials/pg_server_cert.pem -config /opt/test/stackql/test/server/mtls/openssl.cnf -days 365 \
&& openssl req -x509 -keyout /opt/stackql/srv/credentials/pg_client_key.pem -out /opt/stackql/srv/credentials/pg_client_cert.pem -config /opt/test/stackql/test/server/mtls/openssl.cnf -days 365 \
&& openssl req -x509 -keyout /opt/stackql/srv/credentials/pg_rubbish_key.pem -out /opt/stackql/srv/credentials/pg_rubbish_cert.pem -config /opt/test/stackql/test/server/mtls/openssl.cnf -days 365