blob: 84da735321ae255757bf849c266e79d11e2b2eef [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:
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
23 certservice:
24 image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:latest
25 volumes:
26 - $CONFIGURATION_PATH:/etc/onap/aaf/certservice/cmpServers.json
27 container_name: aafcert
28 ports:
29 - "8080:8080"
30 depends_on:
31 ejbca:
32 condition: service_healthy
33