Update ejbca to version 7.4.3.2
[integration/csit.git] / plans / oom-platform-cert-service / certservice / docker-compose.yml
1 version: "2.1"
2
3 services:
4   ejbca:
5     image: primekey/ejbca-ce:7.4.3.2
6     hostname: cahostname
7     container_name: oomcert-ejbca
8     ports:
9       - "80:8080"
10       - "443:8443"
11     volumes:
12       - $RESOURCES_PATH/ejbca-configuration.sh:/opt/primekey/scripts/ejbca-configuration.sh
13       - $RESOURCES_PATH/certprofile_CUSTOM_ENDUSER-1834889499.xml:/opt/primekey/custom_profiles/certprofile_CUSTOM_ENDUSER-1834889499.xml
14       - $RESOURCES_PATH/entityprofile_Custom_EndEntity-1356531849.xml:/opt/primekey/custom_profiles/entityprofile_Custom_EndEntity-1356531849.xml
15     healthcheck:
16       test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
17       interval: 20s
18       timeout: 3s
19       retries: 9
20     networks:
21       - certservice
22
23   oom-cert-service:
24     image: nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-api:latest
25     volumes:
26       - $CONFIGURATION_PATH:/etc/onap/oom/certservice/cmpServers.json
27       - ./certs/truststore.jks:/etc/onap/oom/certservice/certs/truststore.jks
28       - ./certs/root.crt:/etc/onap/oom/certservice/certs/root.crt
29       - ./certs/certServiceServer-keystore.jks:/etc/onap/oom/certservice/certs/certServiceServer-keystore.jks
30       - ./certs/certServiceServer-keystore.p12:/etc/onap/oom/certservice/certs/certServiceServer-keystore.p12
31     container_name: oomcert-service
32     ports:
33       - "8443:8443"
34     depends_on:
35       ejbca:
36         condition: service_healthy
37     healthcheck:
38       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"]
39       interval: 10s
40       timeout: 3s
41       retries: 15
42     networks:
43       - certservice
44
45
46 networks:
47   certservice:
48     driver: bridge
49