grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame^] | 1 | version: "2.2" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 2 | services: |
| 3 | prh: |
| 4 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 5 | ports: |
| 6 | - "8100:8100" |
| 7 | - "8433:8433" |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 8 | environment: |
| 9 | - LOG_LEVEL |
| 10 | - PRH_LOG_LEVEL |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 11 | container_name: prh |
| 12 | depends_on: |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame^] | 13 | cbs: |
| 14 | condition: service_healthy |
| 15 | dmaap-mr: |
| 16 | condition: service_started |
| 17 | aai: |
| 18 | condition: service_started |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 19 | |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 20 | ssl_prh: |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 21 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 22 | ports: |
| 23 | - "8200:8100" |
| 24 | - "8533:8433" |
| 25 | volumes: |
| 26 | - ./simulator/certs:/tmp/certs |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 27 | environment: |
| 28 | - LOG_LEVEL |
| 29 | - PRH_LOG_LEVEL |
| 30 | - HOSTNAME |
| 31 | - CONSUL_HOST |
| 32 | - CONFIG_BINDING_SERVICE |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 33 | container_name: ssl_prh |
| 34 | depends_on: |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame^] | 35 | cbs: |
| 36 | condition: service_healthy |
| 37 | dmaap-mr: |
| 38 | condition: service_started |
| 39 | aai: |
| 40 | condition: service_started |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 41 | |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 42 | dmaap-mr: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 43 | build: |
| 44 | context: simulator |
| 45 | dockerfile: DMaaP_simulator |
| 46 | ports: |
| 47 | - "2222:2222" |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 48 | - "2223:2223" |
| 49 | - "2224:2224" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 50 | container_name: dmaap_simulator |
| 51 | |
| 52 | aai: |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 53 | build: |
| 54 | context: simulator |
| 55 | dockerfile: AAI_simulator |
| 56 | ports: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 57 | - "3333:3333" |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 58 | - "3334:3334" |
| 59 | - "3335:3335" |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 60 | container_name: aai_simulator |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 61 | |
| 62 | consul: |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 63 | image: consul:1.0.6 |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 64 | ports: |
| 65 | - "8500:8500" |
Marcin Migdal | 0a5e115 | 2019-04-10 16:13:08 +0200 | [diff] [blame] | 66 | command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"] |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 67 | volumes: |
| 68 | - ./consul.d/:/consul/consul.d |
Marcin Migdal | 26125b1 | 2019-04-11 16:17:18 +0200 | [diff] [blame] | 69 | container_name: consul |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 70 | |
| 71 | consul-cfg: |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 72 | image: consul:1.0.6 |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 73 | restart: on-failure |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 74 | command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{ |
Marcin Migdal | 2a64cd8 | 2019-04-09 13:13:41 +0200 | [diff] [blame] | 75 | "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 76 | "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr", |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 77 | "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2222, |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 78 | "dmaap.dmaapConsumerConfiguration.dmaapTopicName": "events/unauthenticated.VES_PNFREG_OUTPUT", |
| 79 | "dmaap.dmaapConsumerConfiguration.dmaapProtocol":"http", |
| 80 | "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin", |
| 81 | "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin", |
| 82 | "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json", |
| 83 | "dmaap.dmaapConsumerConfiguration.consumerId": "c12", |
Marcin Migdal | e12311d | 2019-04-08 11:53:21 +0200 | [diff] [blame] | 84 | "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 85 | "dmaap.dmaapConsumerConfiguration.timeoutMs": -1, |
| 86 | "dmaap.dmaapConsumerConfiguration.messageLimit": -1, |
| 87 | |
Marcin Migdal | 2a64cd8 | 2019-04-09 13:13:41 +0200 | [diff] [blame] | 88 | "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 89 | "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr", |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 90 | "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2222, |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 91 | "dmaap.dmaapProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_READY", |
| 92 | "dmaap.dmaapProducerConfiguration.dmaapProtocol":"http", |
| 93 | "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin", |
| 94 | "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin", |
| 95 | "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json", |
| 96 | |
Marcin Migdal | 2a64cd8 | 2019-04-09 13:13:41 +0200 | [diff] [blame] | 97 | "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 98 | "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr", |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 99 | "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2222, |
Marcin Migdal | e12311d | 2019-04-08 11:53:21 +0200 | [diff] [blame] | 100 | "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE", |
| 101 | "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 102 | "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin", |
| 103 | "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin", |
| 104 | "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json", |
| 105 | |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 106 | "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf", |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 107 | "aai.aaiClientConfiguration.aaiHost":"aai", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 108 | "aai.aaiClientConfiguration.aaiHostPortNumber":3334, |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 109 | "aai.aaiClientConfiguration.aaiProtocol":"https", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 110 | "aai.aaiClientConfiguration.aaiUserName": "DCAE", |
| 111 | "aai.aaiClientConfiguration.aaiUserPassword": "DCAE", |
| 112 | "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true, |
| 113 | "aai.aaiClientConfiguration.aaiBasePath": "/aai/v12", |
| 114 | "aai.aaiClientConfiguration.aaiPnfPath": "/network/pnfs/pnf", |
Marcin Migdal | e1a02dc | 2019-04-08 12:29:04 +0200 | [diff] [blame] | 115 | "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}", |
Marcin Migdal | 84372b9 | 2019-04-09 14:55:48 +0200 | [diff] [blame] | 116 | "aai.aaiClientConfiguration.aaiHeaders":{ |
| 117 | "X-FromAppId": "prh", |
| 118 | "X-TransactionId": "9999", |
| 119 | "Accept": "application/json", |
| 120 | "Real-Time": "true", |
| 121 | "Authorization": "Basic QUFJOkFBSQ==" |
| 122 | }, |
Marcin Migdal | e1a02dc | 2019-04-08 12:29:04 +0200 | [diff] [blame] | 123 | |
| 124 | "security.trustStorePath":"change it", |
| 125 | "security.trustStorePasswordPath":"change it", |
| 126 | "security.keyStorePath":"change it", |
| 127 | "security.keyStorePasswordPath":"change it", |
| 128 | "security.enableAaiCertAuth":false, |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 129 | "security.enableDmaapCertAuth":false, |
| 130 | |
| 131 | "streams_publishes":{ |
| 132 | "pnf-update":{ |
Marcin Migdal | 92c6c3c | 2019-04-11 14:07:59 +0200 | [diff] [blame] | 133 | "type": "message_router", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 134 | "dmaap_info":{ |
| 135 | "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE" |
| 136 | } |
| 137 | }, |
| 138 | "pnf-ready":{ |
Marcin Migdal | 92c6c3c | 2019-04-11 14:07:59 +0200 | [diff] [blame] | 139 | "type": "message_router", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 140 | "dmaap_info":{ |
| 141 | "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY" |
| 142 | } |
| 143 | } |
| 144 | }, |
| 145 | "streams_subscribes":{ |
| 146 | "ves-reg-output":{ |
Marcin Migdal | 92c6c3c | 2019-04-11 14:07:59 +0200 | [diff] [blame] | 147 | "type": "message_router", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 148 | "dmaap_info":{ |
| 149 | "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT" |
| 150 | } |
| 151 | } |
| 152 | } |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 153 | }' |
| 154 | ] |
Marcin Migdal | 26125b1 | 2019-04-11 16:17:18 +0200 | [diff] [blame] | 155 | container_name: consul-cfg |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 156 | depends_on: |
| 157 | - consul |
| 158 | |
| 159 | cbs: |
| 160 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4 |
| 161 | ports: |
| 162 | - "10000:10000" |
| 163 | environment: |
| 164 | - CONSUL_HOST |
| 165 | depends_on: |
| 166 | - consul-cfg |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame^] | 167 | healthcheck: |
| 168 | test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"] |
| 169 | interval: 3s |
| 170 | timeout: 2s |
| 171 | retries: 20 |
Marcin Migdal | fba99a5 | 2019-04-15 14:36:45 +0200 | [diff] [blame] | 172 | container_name: cbs |
| 173 | |
| 174 | |
| 175 | |