blob: dcac7df057d6abb84e0ba24342e7483ac60b5957 [file] [log] [blame]
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +01001version: "2.1"
2
3services:
4 ejbca:
Aleksandra Maciagaf6300682020-03-04 17:11:30 +01005 image: primekey/ejbca-ce:6.15.2.5
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +01006 hostname: cahostname
7 container_name: aafcert-ejbca
8 ports:
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +01009 - "80:8080"
10 - "443:8443"
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010011 volumes:
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010012 - $SCRIPTS_PATH:/opt/primekey/scripts
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010013 healthcheck:
14 test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
Aleksandra Maciaga7ce07992020-03-09 10:01:12 +010015 interval: 20s
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010016 timeout: 3s
17 retries: 9
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010018 networks:
19 - certservice
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010020
Aleksandra Maciaga13b7d052020-03-26 17:28:47 +010021 aaf-cert-service:
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010022 image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:latest
23 volumes:
24 - $CONFIGURATION_PATH:/etc/onap/aaf/certservice/cmpServers.json
Aleksandra Maciaga13b7d052020-03-26 17:28:47 +010025 - ./certs/truststore.jks:/etc/onap/aaf/certservice/certs/truststore.jks
26 - ./certs/root.crt:/etc/onap/aaf/certservice/certs/root.crt
27 - ./certs/certServiceServer-keystore.jks:/etc/onap/aaf/certservice/certs/certServiceServer-keystore.jks
28 - ./certs/certServiceServer-keystore.p12:/etc/onap/aaf/certservice/certs/certServiceServer-keystore.p12
29 container_name: aafcert-service
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010030 ports:
Aleksandra Maciaga13b7d052020-03-26 17:28:47 +010031 - "8443:8443"
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010032 depends_on:
33 ejbca:
34 condition: service_healthy
Aleksandra Maciaga13b7d052020-03-26 17:28:47 +010035 healthcheck:
36 test: ["CMD-SHELL", "curl https://localhost:8443/actuator/health --cacert /etc/onap/aaf/certservice/certs/root.crt --cert-type p12 --cert /etc/onap/aaf/certservice/certs/certServiceServer-keystore.p12 --pass secret"]
37 interval: 10s
38 timeout: 3s
39 retries: 15
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010040 networks:
41 - certservice
42
43
44networks:
45 certservice:
46 driver: bridge
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010047