83aff56b3fc52805bd48f783eb4a70b4a8ec4265
[integration/csit.git] / plans / aaf / certservice / docker-compose.yml
1 version: "2.1"
2
3 services:
4   ejbca:
5     image: primekey/ejbca-ce
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       ./scripts/ejbca-configuration.sh &
15       /opt/primekey/bin/start.sh
16       "
17     healthcheck:
18       test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
19       interval: 10s
20       timeout: 3s
21       retries: 9
22     networks:
23       - certservice
24
25   certservice:
26     image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:latest
27     volumes:
28       - $CONFIGURATION_PATH:/etc/onap/aaf/certservice/cmpServers.json
29     container_name: aafcert
30     ports:
31       - "8080:8080"
32     depends_on:
33       ejbca:
34         condition: service_healthy
35     networks:
36       - certservice
37
38
39 networks:
40   certservice:
41     driver: bridge
42