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