blob: b281101a43ff5aaeef329cd02fd970fcf67a71b3 [file] [log] [blame]
Pawelb7a057e2020-08-07 14:53:48 +02001version: "2.1"
2
3services:
4 ejbca:
5 image: primekey/ejbca-ce:6.15.2.5
6 hostname: cahostname
7 container_name: oomcert-ejbca
8 ports:
9 - "80:8080"
10 - "443:8443"
11 volumes:
12 - $SCRIPTS_PATH:/opt/primekey/scripts
13 healthcheck:
14 test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
15 interval: 20s
16 timeout: 3s
17 retries: 9
18 networks:
19 - certservice
20
21 oom-cert-service:
22 image: nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-api:latest
23 volumes:
24 - $CONFIGURATION_PATH:/etc/onap/oom/certservice/cmpServers.json
25 - ./certs/truststore.jks:/etc/onap/oom/certservice/certs/truststore.jks
26 - ./certs/root.crt:/etc/onap/oom/certservice/certs/root.crt
27 - ./certs/certServiceServer-keystore.jks:/etc/onap/oom/certservice/certs/certServiceServer-keystore.jks
28 - ./certs/certServiceServer-keystore.p12:/etc/onap/oom/certservice/certs/certServiceServer-keystore.p12
29 container_name: oomcert-service
30 ports:
31 - "8443:8443"
32 depends_on:
33 ejbca:
34 condition: service_healthy
35 healthcheck:
36 test: ["CMD-SHELL", "curl https://localhost:8443/actuator/health --cacert /etc/onap/oom/certservice/certs/root.crt --cert-type p12 --cert /etc/onap/oom/certservice/certs/certServiceServer-keystore.p12 --pass secret"]
37 interval: 10s
38 timeout: 3s
39 retries: 15
40 networks:
41 - certservice
42
43
44networks:
45 certservice:
46 driver: bridge
47