blob: 97d187e0fbb699438a84ed4ace05edb0732fc2b5 [file] [log] [blame]
Michal Banka5d115472020-02-14 14:55:14 +01001version: "2.1"
2
3services:
4 ejbca:
Bogumil Zebek8f9faca2020-03-06 14:44:28 +01005 image: primekey/ejbca-ce:6.15.2.5
Michal Banka5d115472020-02-14 14:55:14 +01006 hostname: cahostname
Bogumil Zebek8f9faca2020-03-06 14:44:28 +01007 container_name: aafcert-ejbca
Michal Banka5d115472020-02-14 14:55:14 +01008 ports:
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +01009 - "80:8080"
10 - "443:8443"
Michal Banka5d115472020-02-14 14:55:14 +010011 volumes:
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010012 - ./src/main/resources/scripts/:/opt/primekey/scripts
Michal Banka5d115472020-02-14 14:55:14 +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
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010022 networks:
23 - certservice
Michal Banka5d115472020-02-14 14:55:14 +010024
25 certservice:
Tomasz Golabek7244c902020-02-21 15:49:34 +010026 image: onap/org.onap.aaf.certservice.aaf-certservice-api:latest
27 volumes:
28 - ./helm/aaf-cert-service/resources/cmpServers.json:/etc/onap/aaf/certservice/cmpServers.json
Bogumil Zebek8f9faca2020-03-06 14:44:28 +010029 container_name: aafcert-service
Michal Banka5d115472020-02-14 14:55:14 +010030 ports:
31 - "8080:8080"
32 depends_on:
33 ejbca:
34 condition: service_healthy
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010035 networks:
36 - certservice
Michal Banka5d115472020-02-14 14:55:14 +010037
Bartosz Gardziejewskid43531d2020-02-27 10:26:32 +010038
39networks:
40 certservice:
41 driver: bridge