Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 1 | version: "2.1" |
| 2 | |
| 3 | services: |
| 4 | ejbca: |
Bogumil Zebek | 8f9faca | 2020-03-06 14:44:28 +0100 | [diff] [blame] | 5 | image: primekey/ejbca-ce:6.15.2.5 |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 6 | hostname: cahostname |
Bogumil Zebek | 8f9faca | 2020-03-06 14:44:28 +0100 | [diff] [blame] | 7 | container_name: aafcert-ejbca |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 8 | ports: |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 9 | - "80:8080" |
| 10 | - "443:8443" |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 11 | volumes: |
Remigiusz Janeczek | f404a66 | 2020-03-18 13:21:35 +0100 | [diff] [blame] | 12 | - ./compose-resources/ejbca-configuration.sh:/opt/primekey/scripts/ejbca-configuration.sh |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 13 | healthcheck: |
| 14 | test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"] |
| 15 | interval: 10s |
| 16 | timeout: 3s |
Remigiusz Janeczek | f404a66 | 2020-03-18 13:21:35 +0100 | [diff] [blame] | 17 | retries: 15 |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 18 | networks: |
| 19 | - certservice |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 20 | |
awudzins | b81c681 | 2020-03-13 16:54:18 +0100 | [diff] [blame] | 21 | aaf-cert-service: |
Tomasz Golabek | 7244c90 | 2020-02-21 15:49:34 +0100 | [diff] [blame] | 22 | image: onap/org.onap.aaf.certservice.aaf-certservice-api:latest |
Remigiusz Janeczek | f404a66 | 2020-03-18 13:21:35 +0100 | [diff] [blame] | 23 | volumes: |
awudzins | 7798d51 | 2020-04-08 15:13:50 +0200 | [diff] [blame] | 24 | - ./compose-resources/cmpServers.json:/etc/onap/aaf/certservice/cmpServers.json |
awudzins | b81c681 | 2020-03-13 16:54:18 +0100 | [diff] [blame] | 25 | - ./certs/truststore.jks:/etc/onap/aaf/certservice/certs/truststore.jks |
| 26 | - ./certs/root.crt:/etc/onap/aaf/certservice/certs/root.crt |
| 27 | - ./certs/certServiceServer-keystore.jks:/etc/onap/aaf/certservice/certs/certServiceServer-keystore.jks |
| 28 | - ./certs/certServiceServer-keystore.p12:/etc/onap/aaf/certservice/certs/certServiceServer-keystore.p12 |
| 29 | container_name: aafcert-service |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 30 | ports: |
awudzins | b81c681 | 2020-03-13 16:54:18 +0100 | [diff] [blame] | 31 | - "8443:8443" |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 32 | depends_on: |
| 33 | ejbca: |
| 34 | condition: service_healthy |
awudzins | b81c681 | 2020-03-13 16:54:18 +0100 | [diff] [blame] | 35 | healthcheck: |
| 36 | test: ["CMD-SHELL", "curl https://localhost:8443/actuator/health --cacert /etc/onap/aaf/certservice/certs/root.crt --cert-type p12 --cert /etc/onap/aaf/certservice/certs/certServiceServer-keystore.p12 --pass secret"] |
| 37 | interval: 10s |
| 38 | timeout: 3s |
| 39 | retries: 15 |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 40 | networks: |
| 41 | - certservice |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 42 | |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 43 | |
| 44 | networks: |
| 45 | certservice: |
| 46 | driver: bridge |