Add certificate update cases to Cert Service CSITs
[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     environment:
12       - NO_CREATE_CA=true
13     volumes:
14       - $RESOURCES_PATH/ejbca-configuration.sh:/opt/primekey/scripts/ejbca-configuration.sh
15       - $RESOURCES_PATH/certprofile_CUSTOM_ENDUSER-1834889499.xml:/opt/primekey/custom_profiles/certprofile_CUSTOM_ENDUSER-1834889499.xml
16       - $RESOURCES_PATH/entityprofile_Custom_EndEntity-1356531849.xml:/opt/primekey/custom_profiles/entityprofile_Custom_EndEntity-1356531849.xml
17     healthcheck:
18       test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
19       interval: 20s
20       timeout: 3s
21       retries: 9
22     networks:
23       - certservice
24
25   oom-cert-service:
26     image: nexus3.onap.org:10001/onap/org.onap.oom.platform.cert-service.oom-certservice-api:latest
27     volumes:
28       - $CONFIGURATION_PATH:/etc/onap/oom/certservice/cmpServers.json
29       - ./certs/truststore.jks:/etc/onap/oom/certservice/certs/truststore.jks
30       - ./certs/root.crt:/etc/onap/oom/certservice/certs/root.crt
31       - ./certs/certServiceServer-keystore.jks:/etc/onap/oom/certservice/certs/certServiceServer-keystore.jks
32       - ./certs/certServiceServer-keystore.p12:/etc/onap/oom/certservice/certs/certServiceServer-keystore.p12
33     container_name: oomcert-service
34     ports:
35       - "8443:8443"
36     depends_on:
37       ejbca:
38         condition: service_healthy
39     healthcheck:
40       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"]
41       interval: 10s
42       timeout: 3s
43       retries: 15
44     networks:
45       - certservice
46
47
48 networks:
49   certservice:
50     driver: bridge
51