Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 1 | version: "2.1" |
| 2 | |
| 3 | services: |
| 4 | ejbca: |
| 5 | image: primekey/ejbca-ce |
| 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 " |
| 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 |
Aleksandra Maciaga | 93f9ea4 | 2020-03-03 13:38:58 +0100 | [diff] [blame^] | 22 | networks: |
| 23 | - certservice |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 24 | |
| 25 | certservice: |
| 26 | image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-api:latest |
| 27 | volumes: |
| 28 | - $CONFIGURATION_PATH:/etc/onap/aaf/certservice/cmpServers.json |
| 29 | container_name: aafcert |
| 30 | ports: |
| 31 | - "8080:8080" |
| 32 | depends_on: |
| 33 | ejbca: |
| 34 | condition: service_healthy |
Aleksandra Maciaga | 93f9ea4 | 2020-03-03 13:38:58 +0100 | [diff] [blame^] | 35 | networks: |
| 36 | - certservice |
| 37 | |
| 38 | |
| 39 | networks: |
| 40 | certservice: |
| 41 | driver: bridge |
Aleksandra Maciaga | 7a5e3f6 | 2020-03-03 12:35:16 +0100 | [diff] [blame] | 42 | |