blob: 8aa72a551aadd788cc519d9148ca566188dd90ef [file] [log] [blame]
Michal Banka5d115472020-02-14 14:55:14 +01001version: "2.1"
2
3services:
4 ejbca:
Bogumil Zebek8f9faca2020-03-06 14:44:28 +01005 image: primekey/ejbca-ce:6.15.2.5
Michal Banka5d115472020-02-14 14:55:14 +01006 hostname: cahostname
Bogumil Zebek8f9faca2020-03-06 14:44:28 +01007 container_name: aafcert-ejbca
Michal Banka5d115472020-02-14 14:55:14 +01008 ports:
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +01009 - "80:8080"
10 - "443:8443"
Michal Banka5d115472020-02-14 14:55:14 +010011 volumes:
Remigiusz Janeczekf404a662020-03-18 13:21:35 +010012 - ./compose-resources/ejbca-configuration.sh:/opt/primekey/scripts/ejbca-configuration.sh
Michal Banka5d115472020-02-14 14:55:14 +010013 healthcheck:
14 test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
15 interval: 10s
16 timeout: 3s
Remigiusz Janeczekf404a662020-03-18 13:21:35 +010017 retries: 15
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010018 networks:
19 - certservice
Michal Banka5d115472020-02-14 14:55:14 +010020
awudzinsb81c6812020-03-13 16:54:18 +010021 aaf-cert-service:
Tomasz Golabek7244c902020-02-21 15:49:34 +010022 image: onap/org.onap.aaf.certservice.aaf-certservice-api:latest
Remigiusz Janeczekf404a662020-03-18 13:21:35 +010023 volumes:
awudzins7798d512020-04-08 15:13:50 +020024 - ./compose-resources/cmpServers.json:/etc/onap/aaf/certservice/cmpServers.json
awudzinsb81c6812020-03-13 16:54:18 +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
Michal Banka5d115472020-02-14 14:55:14 +010030 ports:
awudzinsb81c6812020-03-13 16:54:18 +010031 - "8443:8443"
Michal Banka5d115472020-02-14 14:55:14 +010032 depends_on:
33 ejbca:
34 condition: service_healthy
awudzinsb81c6812020-03-13 16:54:18 +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
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010040 networks:
41 - certservice
Michal Banka5d115472020-02-14 14:55:14 +010042
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010043
44networks:
45 certservice:
46 driver: bridge