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: |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 12 | - ./src/main/resources/scripts/:/opt/primekey/scripts |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 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 |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 22 | networks: |
| 23 | - certservice |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 24 | |
| 25 | certservice: |
Tomasz Golabek | 7244c90 | 2020-02-21 15:49:34 +0100 | [diff] [blame] | 26 | 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 Zebek | 8f9faca | 2020-03-06 14:44:28 +0100 | [diff] [blame^] | 29 | container_name: aafcert-service |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 30 | ports: |
| 31 | - "8080:8080" |
| 32 | depends_on: |
| 33 | ejbca: |
| 34 | condition: service_healthy |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 35 | networks: |
| 36 | - certservice |
Michal Banka | 5d11547 | 2020-02-14 14:55:14 +0100 | [diff] [blame] | 37 | |
Bartosz Gardziejewski | d43531d | 2020-02-27 10:26:32 +0100 | [diff] [blame] | 38 | |
| 39 | networks: |
| 40 | certservice: |
| 41 | driver: bridge |