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 | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 8 | volumes: |
| 9 | - ./simulator/certs:/tmp/certs |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 10 | environment: |
| 11 | - LOG_LEVEL |
| 12 | - PRH_LOG_LEVEL |
| 13 | - HOSTNAME |
| 14 | - CONSUL_HOST |
| 15 | - CONFIG_BINDING_SERVICE |
grabinsk | 0fc9eab | 2019-05-23 13:34:38 +0200 | [diff] [blame^] | 16 | container_name: prh |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 17 | depends_on: |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame] | 18 | cbs: |
| 19 | condition: service_healthy |
| 20 | dmaap-mr: |
| 21 | condition: service_started |
| 22 | aai: |
| 23 | condition: service_started |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 24 | |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 25 | dmaap-mr: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 26 | build: |
| 27 | context: simulator |
| 28 | dockerfile: DMaaP_simulator |
| 29 | ports: |
| 30 | - "2222:2222" |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 31 | - "2223:2223" |
| 32 | - "2224:2224" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 33 | container_name: dmaap_simulator |
| 34 | |
| 35 | aai: |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 36 | build: |
| 37 | context: simulator |
| 38 | dockerfile: AAI_simulator |
| 39 | ports: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 40 | - "3333:3333" |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 41 | - "3334:3334" |
| 42 | - "3335:3335" |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 43 | container_name: aai_simulator |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 44 | |
| 45 | consul: |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 46 | image: consul:1.0.6 |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 47 | ports: |
| 48 | - "8500:8500" |
Marcin Migdal | 0a5e115 | 2019-04-10 16:13:08 +0200 | [diff] [blame] | 49 | 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] | 50 | volumes: |
| 51 | - ./consul.d/:/consul/consul.d |
Marcin Migdal | 26125b1 | 2019-04-11 16:17:18 +0200 | [diff] [blame] | 52 | container_name: consul |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 53 | |
| 54 | consul-cfg: |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 55 | image: consul:1.0.6 |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 56 | restart: on-failure |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 57 | command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{ |
Marcin Migdal | 2a64cd8 | 2019-04-09 13:13:41 +0200 | [diff] [blame] | 58 | "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 59 | "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr", |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 60 | "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2222, |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 61 | "dmaap.dmaapConsumerConfiguration.dmaapTopicName": "events/unauthenticated.VES_PNFREG_OUTPUT", |
| 62 | "dmaap.dmaapConsumerConfiguration.dmaapProtocol":"http", |
| 63 | "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin", |
| 64 | "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin", |
| 65 | "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json", |
| 66 | "dmaap.dmaapConsumerConfiguration.consumerId": "c12", |
Marcin Migdal | e12311d | 2019-04-08 11:53:21 +0200 | [diff] [blame] | 67 | "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 68 | "dmaap.dmaapConsumerConfiguration.timeoutMs": -1, |
| 69 | "dmaap.dmaapConsumerConfiguration.messageLimit": -1, |
| 70 | |
Marcin Migdal | 2a64cd8 | 2019-04-09 13:13:41 +0200 | [diff] [blame] | 71 | "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 72 | "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr", |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 73 | "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2222, |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 74 | "dmaap.dmaapProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_READY", |
| 75 | "dmaap.dmaapProducerConfiguration.dmaapProtocol":"http", |
| 76 | "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin", |
| 77 | "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin", |
| 78 | "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json", |
| 79 | |
Marcin Migdal | 2a64cd8 | 2019-04-09 13:13:41 +0200 | [diff] [blame] | 80 | "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 81 | "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr", |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 82 | "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2222, |
Marcin Migdal | e12311d | 2019-04-08 11:53:21 +0200 | [diff] [blame] | 83 | "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE", |
| 84 | "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 85 | "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin", |
| 86 | "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin", |
| 87 | "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json", |
| 88 | |
Marcin Migdal | 70c4e53 | 2019-04-16 14:35:58 +0200 | [diff] [blame] | 89 | "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf", |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 90 | "aai.aaiClientConfiguration.aaiHost":"aai", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 91 | "aai.aaiClientConfiguration.aaiHostPortNumber":3334, |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 92 | "aai.aaiClientConfiguration.aaiProtocol":"https", |
Marcin Migdal | f0e481e | 2019-04-08 10:15:17 +0200 | [diff] [blame] | 93 | "aai.aaiClientConfiguration.aaiUserName": "DCAE", |
| 94 | "aai.aaiClientConfiguration.aaiUserPassword": "DCAE", |
| 95 | "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true, |
| 96 | "aai.aaiClientConfiguration.aaiBasePath": "/aai/v12", |
| 97 | "aai.aaiClientConfiguration.aaiPnfPath": "/network/pnfs/pnf", |
Marcin Migdal | e1a02dc | 2019-04-08 12:29:04 +0200 | [diff] [blame] | 98 | "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] | 99 | "aai.aaiClientConfiguration.aaiHeaders":{ |
| 100 | "X-FromAppId": "prh", |
| 101 | "X-TransactionId": "9999", |
| 102 | "Accept": "application/json", |
| 103 | "Real-Time": "true", |
| 104 | "Authorization": "Basic QUFJOkFBSQ==" |
| 105 | }, |
Marcin Migdal | e1a02dc | 2019-04-08 12:29:04 +0200 | [diff] [blame] | 106 | |
grabinsk | 0fc9eab | 2019-05-23 13:34:38 +0200 | [diff] [blame^] | 107 | "security.trustStorePath":"/tmp/certs/truststore.jks", |
| 108 | "security.trustStorePasswordPath":"/tmp/certs/truststore.password", |
| 109 | "security.keyStorePath":"/tmp/certs/keystore.p12", |
| 110 | "security.keyStorePasswordPath":"/tmp/certs/keystore.password", |
| 111 | "security.enableAaiCertAuth":true, |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 112 | "security.enableDmaapCertAuth":false, |
| 113 | |
| 114 | "streams_publishes":{ |
| 115 | "pnf-update":{ |
Marcin Migdal | 92c6c3c | 2019-04-11 14:07:59 +0200 | [diff] [blame] | 116 | "type": "message_router", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 117 | "dmaap_info":{ |
| 118 | "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE" |
| 119 | } |
| 120 | }, |
| 121 | "pnf-ready":{ |
Marcin Migdal | 92c6c3c | 2019-04-11 14:07:59 +0200 | [diff] [blame] | 122 | "type": "message_router", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 123 | "dmaap_info":{ |
| 124 | "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY" |
| 125 | } |
| 126 | } |
| 127 | }, |
| 128 | "streams_subscribes":{ |
| 129 | "ves-reg-output":{ |
Marcin Migdal | 92c6c3c | 2019-04-11 14:07:59 +0200 | [diff] [blame] | 130 | "type": "message_router", |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 131 | "dmaap_info":{ |
| 132 | "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT" |
| 133 | } |
| 134 | } |
| 135 | } |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 136 | }' |
| 137 | ] |
Marcin Migdal | 26125b1 | 2019-04-11 16:17:18 +0200 | [diff] [blame] | 138 | container_name: consul-cfg |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 139 | depends_on: |
| 140 | - consul |
| 141 | |
Marcin Migdal | 9717aba | 2019-05-08 14:52:49 +0200 | [diff] [blame] | 142 | consul-cfg-dcae-ves-collector: |
| 143 | image: consul:1.0.6 |
| 144 | restart: on-failure |
| 145 | command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector",'{ |
| 146 | "collector.dynamic.config.update.frequency": "5", |
| 147 | "event.transform.flag": "0", |
| 148 | "collector.schema.checkflag": "1", |
| 149 | "collector.dmaap.streamid": "fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration", |
| 150 | "collector.service.port": "8080", |
| 151 | "collector.schema.file":"{ |
| 152 | \"v1\":\"./etc/CommonEventFormat_27.2.json\", |
| 153 | \"v2\":\"./etc/CommonEventFormat_27.2.json\", |
| 154 | \"v3\":\"./etc/CommonEventFormat_27.2.json\", |
| 155 | \"v4\":\"./etc/CommonEventFormat_27.2.json\", |
| 156 | \"v5\":\"./etc/CommonEventFormat_28.4.1.json\", |
| 157 | \"v7\":\"./etc/CommonEventFormat_30.0.1.json\" |
| 158 | }", |
| 159 | "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile", |
| 160 | "collector.inputQueue.maxPending": "8096", |
| 161 | "streams_publishes":{ |
| 162 | "ves-measurement": { |
| 163 | "type": "message_router", |
| 164 | "dmaap_info": { |
| 165 | "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/" |
| 166 | } |
| 167 | }, |
| 168 | "ves-fault": { |
| 169 | "type": "message_router", |
| 170 | "dmaap_info": { |
| 171 | "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/" |
| 172 | } |
| 173 | }, |
| 174 | "ves-pnfRegistration": { |
| 175 | "type": "message_router", |
| 176 | "dmaap_info": { |
| 177 | "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/" |
| 178 | } |
| 179 | }, |
| 180 | "ves-other": { |
| 181 | "type": "message_router", |
| 182 | "dmaap_info": { |
| 183 | "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/" |
| 184 | } |
| 185 | }, |
| 186 | "ves-heartbeat": { |
| 187 | "type": "message_router", |
| 188 | "dmaap_info": { |
| 189 | "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/" |
| 190 | } |
| 191 | }, |
| 192 | "ves-notification": { |
| 193 | "type": "message_router", |
| 194 | "dmaap_info": { |
| 195 | "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/" |
| 196 | } |
| 197 | } |
| 198 | }, |
| 199 | "collector.service.secure.port": "8443", |
| 200 | "header.authflag": "0", |
| 201 | "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore", |
| 202 | "collector.keystore.alias": |
| 203 | "dynamically generated", |
| 204 | "services_calls": [], |
| 205 | "header.authlist": "sample1,c2FtcGxlMQ==" |
| 206 | }'] |
| 207 | container_name: consul-cfg-dcae-ves-collector |
| 208 | depends_on: |
| 209 | - consul |
| 210 | |
| 211 | |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 212 | cbs: |
| 213 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4 |
| 214 | ports: |
| 215 | - "10000:10000" |
| 216 | environment: |
| 217 | - CONSUL_HOST |
| 218 | depends_on: |
| 219 | - consul-cfg |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame] | 220 | healthcheck: |
| 221 | test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"] |
| 222 | interval: 3s |
| 223 | timeout: 2s |
| 224 | retries: 20 |
Marcin Migdal | fba99a5 | 2019-04-15 14:36:45 +0200 | [diff] [blame] | 225 | container_name: cbs |