Fix timeout issue when cert service is unavailable
[oom/platform/cert-service.git] / 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       - ./compose-resources/ejbca-configuration.sh:/opt/primekey/scripts/ejbca-configuration.sh
13     healthcheck:
14       test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"]
15       interval: 10s
16       timeout: 3s
17       retries: 15
18     networks:
19       - certservice
20
21   certservice:
22     image: onap/org.onap.aaf.certservice.aaf-certservice-api:latest
23     container_name: aafcert-service
24     volumes:
25       - ./certService/helm/aaf-cert-service/resources/cmpServers.json:/etc/onap/aaf/certservice/cmpServers.json
26     ports:
27       - "8080:8080"
28     depends_on:
29       ejbca:
30         condition: service_healthy
31     networks:
32       - certservice
33
34
35 networks:
36   certservice:
37     driver: bridge