Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 1 | version: "2.1" |
| 2 | |
| 3 | services: |
| 4 | ejbca: |
Aleksandra Maciaga | f630068 | 2020-03-04 17:11:30 +0100 | [diff] [blame] | 5 | image: primekey/ejbca-ce:6.15.2.5 |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 6 | hostname: cahostname |
| 7 | container_name: aafcert-ejbca |
| 8 | ports: |
Aleksandra Maciaga | 93f9ea4 | 2020-03-03 13:38:58 +0100 | [diff] [blame] | 9 | - "80:8080" |
| 10 | - "443:8443" |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 11 | volumes: |
Aleksandra Maciaga | 93f9ea4 | 2020-03-03 13:38:58 +0100 | [diff] [blame] | 12 | - $SCRIPTS_PATH:/opt/primekey/scripts |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 13 | command: bash -c " |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 14 | /opt/primekey/bin/start.sh |
| 15 | " |
| 16 | healthcheck: |
| 17 | test: ["CMD-SHELL", "curl -kI https://localhost:8443/ejbca/publicweb/healthcheck/ejbcahealth"] |
Aleksandra Maciaga | 7ce0799 | 2020-03-09 10:01:12 +0100 | [diff] [blame] | 18 | interval: 20s |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 19 | timeout: 3s |
| 20 | retries: 9 |
Aleksandra Maciaga | 93f9ea4 | 2020-03-03 13:38:58 +0100 | [diff] [blame] | 21 | networks: |
| 22 | - certservice |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 23 | |
| 24 | certservice: |
| 25 | image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:latest |
| 26 | volumes: |
| 27 | - $CONFIGURATION_PATH:/etc/onap/aaf/certservice/cmpServers.json |
| 28 | container_name: aafcert |
| 29 | ports: |
| 30 | - "8080:8080" |
| 31 | depends_on: |
| 32 | ejbca: |
| 33 | condition: service_healthy |
Aleksandra Maciaga | 93f9ea4 | 2020-03-03 13:38:58 +0100 | [diff] [blame] | 34 | networks: |
| 35 | - certservice |
| 36 | |
| 37 | |
| 38 | networks: |
| 39 | certservice: |
| 40 | driver: bridge |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 41 | |