blob: ae7ee878bb23601371b6377b3054651944e5440a [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 command: bash -c "
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010014 /opt/primekey/bin/start.sh
15 "
16 healthcheck:
17 test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
Aleksandra Maciaga7ce07992020-03-09 10:01:12 +010018 interval: 20s
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010019 timeout: 3s
20 retries: 9
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010021 networks:
22 - certservice
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010023
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
Aleksandra Maciaga93f9ea42020-03-03 13:38:58 +010034 networks:
35 - certservice
36
37
38networks:
39 certservice:
40 driver: bridge
Aleksandra Maciaga7a5e3f62020-03-03 12:35:16 +010041