blob: 83aff56b3fc52805bd48f783eb4a70b4a8ec4265 [file] [log] [blame]
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +01001version: "2.1"
2
3services:
4 ejbca:
5 image: primekey/ejbca-ce
6 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 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
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010022 networks:
23 - certservice
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010024
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
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010035 networks:
36 - certservice
37
38
39networks:
40 certservice:
41 driver: bridge
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010042