ae7ee878bb23601371b6377b3054651944e5440a
[integration/csit.git] / plans / aaf / certservice / docker-compose.yml
1 version: "2.1"
2
3 services:
4   ejbca:
5     image: primekey/ejbca-ce:6.15.2.5
6     hostname: cahostname
7     container_name: aafcert-ejbca
8     ports:
9       - "80:8080"
10       - "443:8443"
11     volumes:
12       - $SCRIPTS_PATH:/opt/primekey/scripts
13     command: bash -c "
14       /opt/primekey/bin/start.sh
15       "
16     healthcheck:
17       test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
18       interval: 20s
19       timeout: 3s
20       retries: 9
21     networks:
22       - certservice
23
24   certservice:
25     image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:latest
26     volumes:
27       - $CONFIGURATION_PATH:/etc/onap/aaf/certservice/cmpServers.json
28     container_name: aafcert
29     ports:
30       - "8080:8080"
31     depends_on:
32       ejbca:
33         condition: service_healthy
34     networks:
35       - certservice
36
37
38 networks:
39   certservice:
40     driver: bridge
41