blob: a8e5d566cc53d4dfe10950d3bb5d05d7aadff1c9 [file] [log] [blame]
grabinsk98daff82019-05-08 13:07:45 +02001version: "2.2"
Gary Wu9abb61c2018-09-27 10:38:50 -07002services:
3 prh:
4 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
Gary Wu9abb61c2018-09-27 10:38:50 -07005 ports:
6 - "8100:8100"
7 - "8433:8433"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +01008 volumes:
9 - ./simulator/certs:/tmp/certs
Piotr Bocheński2378ea12019-03-12 16:49:08 +010010 environment:
11 - LOG_LEVEL
12 - PRH_LOG_LEVEL
13 - HOSTNAME
14 - CONSUL_HOST
15 - CONFIG_BINDING_SERVICE
grabinsk0fc9eab2019-05-23 13:34:38 +020016 container_name: prh
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010017 depends_on:
grabinsk98daff82019-05-08 13:07:45 +020018 cbs:
19 condition: service_healthy
20 dmaap-mr:
21 condition: service_started
22 aai:
23 condition: service_started
pkaras55d36862018-10-17 15:08:34 +020024
Marcin Migdal4882c742019-04-09 10:49:37 +020025 dmaap-mr:
Gary Wu9abb61c2018-09-27 10:38:50 -070026 build:
27 context: simulator
28 dockerfile: DMaaP_simulator
29 ports:
30 - "2222:2222"
pkarasc7abba82018-10-22 12:22:35 +020031 - "2223:2223"
32 - "2224:2224"
Gary Wu9abb61c2018-09-27 10:38:50 -070033 container_name: dmaap_simulator
34
35 aai:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010036 build:
37 context: simulator
38 dockerfile: AAI_simulator
39 ports:
Gary Wu9abb61c2018-09-27 10:38:50 -070040 - "3333:3333"
pkaras55d36862018-10-17 15:08:34 +020041 - "3334:3334"
42 - "3335:3335"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010043 container_name: aai_simulator
Piotr Bocheński2378ea12019-03-12 16:49:08 +010044
45 consul:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010046 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010047 ports:
48 - "8500:8500"
Marcin Migdal0a5e1152019-04-10 16:13:08 +020049 command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
Piotr Bocheński2378ea12019-03-12 16:49:08 +010050 volumes:
51 - ./consul.d/:/consul/consul.d
Marcin Migdal26125b12019-04-11 16:17:18 +020052 container_name: consul
Piotr Bocheński2378ea12019-03-12 16:49:08 +010053
54 consul-cfg:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010055 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010056 restart: on-failure
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010057 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{
Marcin Migdal2a64cd82019-04-09 13:13:41 +020058 "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT",
Marcin Migdal4882c742019-04-09 10:49:37 +020059 "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr",
Marcin Migdal70c4e532019-04-16 14:35:58 +020060 "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2222,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020061 "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 Migdale12311d2019-04-08 11:53:21 +020067 "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020068 "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
69 "dmaap.dmaapConsumerConfiguration.messageLimit": -1,
70
Marcin Migdal2a64cd82019-04-09 13:13:41 +020071 "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY",
Marcin Migdal4882c742019-04-09 10:49:37 +020072 "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr",
Marcin Migdal70c4e532019-04-16 14:35:58 +020073 "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2222,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020074 "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 Migdal2a64cd82019-04-09 13:13:41 +020080 "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE",
Marcin Migdal4882c742019-04-09 10:49:37 +020081 "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr",
Marcin Migdal70c4e532019-04-16 14:35:58 +020082 "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2222,
Marcin Migdale12311d2019-04-08 11:53:21 +020083 "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE",
84 "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020085 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
86 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
87 "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
88
Marcin Migdal70c4e532019-04-16 14:35:58 +020089 "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf",
Piotr Bocheński2378ea12019-03-12 16:49:08 +010090 "aai.aaiClientConfiguration.aaiHost":"aai",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020091 "aai.aaiClientConfiguration.aaiHostPortNumber":3334,
Piotr Bocheński2378ea12019-03-12 16:49:08 +010092 "aai.aaiClientConfiguration.aaiProtocol":"https",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020093 "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 Migdale1a02dc2019-04-08 12:29:04 +020098 "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
Marcin Migdal84372b92019-04-09 14:55:48 +020099 "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 Migdale1a02dc2019-04-08 12:29:04 +0200106
grabinsk0fc9eab2019-05-23 13:34:38 +0200107 "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 Migdal4882c742019-04-09 10:49:37 +0200112 "security.enableDmaapCertAuth":false,
113
114 "streams_publishes":{
115 "pnf-update":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200116 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200117 "dmaap_info":{
118 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
119 }
120 },
121 "pnf-ready":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200122 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200123 "dmaap_info":{
124 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
125 }
126 }
127 },
128 "streams_subscribes":{
129 "ves-reg-output":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200130 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200131 "dmaap_info":{
132 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
133 }
134 }
135 }
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100136 }'
137 ]
Marcin Migdal26125b12019-04-11 16:17:18 +0200138 container_name: consul-cfg
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100139 depends_on:
140 - consul
141
Marcin Migdal9717aba2019-05-08 14:52:49 +0200142 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ński2378ea12019-03-12 16:49:08 +0100212 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
grabinsk98daff82019-05-08 13:07:45 +0200220 healthcheck:
221 test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
222 interval: 3s
223 timeout: 2s
224 retries: 20
Marcin Migdalfba99a52019-04-15 14:36:45 +0200225 container_name: cbs