blob: 7b208b8b993e48ce16c796aaa583f807bd4c8ef7 [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ński2378ea12019-03-12 16:49:08 +01008 environment:
9 - LOG_LEVEL
10 - PRH_LOG_LEVEL
Gary Wu9abb61c2018-09-27 10:38:50 -070011 container_name: prh
12 depends_on:
grabinsk98daff82019-05-08 13:07:45 +020013 cbs:
14 condition: service_healthy
15 dmaap-mr:
16 condition: service_started
17 aai:
18 condition: service_started
Gary Wu9abb61c2018-09-27 10:38:50 -070019
pkaras55d36862018-10-17 15:08:34 +020020 ssl_prh:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010021 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010022 ports:
23 - "8200:8100"
24 - "8533:8433"
25 volumes:
26 - ./simulator/certs:/tmp/certs
Piotr Bocheński2378ea12019-03-12 16:49:08 +010027 environment:
28 - LOG_LEVEL
29 - PRH_LOG_LEVEL
30 - HOSTNAME
31 - CONSUL_HOST
32 - CONFIG_BINDING_SERVICE
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010033 container_name: ssl_prh
34 depends_on:
grabinsk98daff82019-05-08 13:07:45 +020035 cbs:
36 condition: service_healthy
37 dmaap-mr:
38 condition: service_started
39 aai:
40 condition: service_started
pkaras55d36862018-10-17 15:08:34 +020041
Marcin Migdal4882c742019-04-09 10:49:37 +020042 dmaap-mr:
Gary Wu9abb61c2018-09-27 10:38:50 -070043 build:
44 context: simulator
45 dockerfile: DMaaP_simulator
46 ports:
47 - "2222:2222"
pkarasc7abba82018-10-22 12:22:35 +020048 - "2223:2223"
49 - "2224:2224"
Gary Wu9abb61c2018-09-27 10:38:50 -070050 container_name: dmaap_simulator
51
52 aai:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010053 build:
54 context: simulator
55 dockerfile: AAI_simulator
56 ports:
Gary Wu9abb61c2018-09-27 10:38:50 -070057 - "3333:3333"
pkaras55d36862018-10-17 15:08:34 +020058 - "3334:3334"
59 - "3335:3335"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010060 container_name: aai_simulator
Piotr Bocheński2378ea12019-03-12 16:49:08 +010061
62 consul:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010063 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010064 ports:
65 - "8500:8500"
Marcin Migdal0a5e1152019-04-10 16:13:08 +020066 command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
Piotr Bocheński2378ea12019-03-12 16:49:08 +010067 volumes:
68 - ./consul.d/:/consul/consul.d
Marcin Migdal26125b12019-04-11 16:17:18 +020069 container_name: consul
Piotr Bocheński2378ea12019-03-12 16:49:08 +010070
71 consul-cfg:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010072 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010073 restart: on-failure
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010074 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{
Marcin Migdal2a64cd82019-04-09 13:13:41 +020075 "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT",
Marcin Migdal4882c742019-04-09 10:49:37 +020076 "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr",
Marcin Migdal70c4e532019-04-16 14:35:58 +020077 "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2222,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020078 "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 Migdale12311d2019-04-08 11:53:21 +020084 "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020085 "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
86 "dmaap.dmaapConsumerConfiguration.messageLimit": -1,
87
Marcin Migdal2a64cd82019-04-09 13:13:41 +020088 "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY",
Marcin Migdal4882c742019-04-09 10:49:37 +020089 "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr",
Marcin Migdal70c4e532019-04-16 14:35:58 +020090 "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2222,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020091 "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 Migdal2a64cd82019-04-09 13:13:41 +020097 "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE",
Marcin Migdal4882c742019-04-09 10:49:37 +020098 "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr",
Marcin Migdal70c4e532019-04-16 14:35:58 +020099 "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2222,
Marcin Migdale12311d2019-04-08 11:53:21 +0200100 "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE",
101 "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200102 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
103 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
104 "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
105
Marcin Migdal70c4e532019-04-16 14:35:58 +0200106 "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf",
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100107 "aai.aaiClientConfiguration.aaiHost":"aai",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200108 "aai.aaiClientConfiguration.aaiHostPortNumber":3334,
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100109 "aai.aaiClientConfiguration.aaiProtocol":"https",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200110 "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 Migdale1a02dc2019-04-08 12:29:04 +0200115 "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
Marcin Migdal84372b92019-04-09 14:55:48 +0200116 "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 Migdale1a02dc2019-04-08 12:29:04 +0200123
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 Migdal4882c742019-04-09 10:49:37 +0200129 "security.enableDmaapCertAuth":false,
130
131 "streams_publishes":{
132 "pnf-update":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200133 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200134 "dmaap_info":{
135 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
136 }
137 },
138 "pnf-ready":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200139 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200140 "dmaap_info":{
141 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
142 }
143 }
144 },
145 "streams_subscribes":{
146 "ves-reg-output":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200147 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200148 "dmaap_info":{
149 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
150 }
151 }
152 }
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100153 }'
154 ]
Marcin Migdal26125b12019-04-11 16:17:18 +0200155 container_name: consul-cfg
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100156 depends_on:
157 - consul
158
Marcin Migdal9717aba2019-05-08 14:52:49 +0200159 consul-cfg-dcae-ves-collector:
160 image: consul:1.0.6
161 restart: on-failure
162 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector",'{
163 "collector.dynamic.config.update.frequency": "5",
164 "event.transform.flag": "0",
165 "collector.schema.checkflag": "1",
166 "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",
167 "collector.service.port": "8080",
168 "collector.schema.file":"{
169 \"v1\":\"./etc/CommonEventFormat_27.2.json\",
170 \"v2\":\"./etc/CommonEventFormat_27.2.json\",
171 \"v3\":\"./etc/CommonEventFormat_27.2.json\",
172 \"v4\":\"./etc/CommonEventFormat_27.2.json\",
173 \"v5\":\"./etc/CommonEventFormat_28.4.1.json\",
174 \"v7\":\"./etc/CommonEventFormat_30.0.1.json\"
175 }",
176 "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile",
177 "collector.inputQueue.maxPending": "8096",
178 "streams_publishes":{
179 "ves-measurement": {
180 "type": "message_router",
181 "dmaap_info": {
182 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/"
183 }
184 },
185 "ves-fault": {
186 "type": "message_router",
187 "dmaap_info": {
188 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/"
189 }
190 },
191 "ves-pnfRegistration": {
192 "type": "message_router",
193 "dmaap_info": {
194 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/"
195 }
196 },
197 "ves-other": {
198 "type": "message_router",
199 "dmaap_info": {
200 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/"
201 }
202 },
203 "ves-heartbeat": {
204 "type": "message_router",
205 "dmaap_info": {
206 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/"
207 }
208 },
209 "ves-notification": {
210 "type": "message_router",
211 "dmaap_info": {
212 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/"
213 }
214 }
215 },
216 "collector.service.secure.port": "8443",
217 "header.authflag": "0",
218 "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore",
219 "collector.keystore.alias":
220 "dynamically generated",
221 "services_calls": [],
222 "header.authlist": "sample1,c2FtcGxlMQ=="
223 }']
224 container_name: consul-cfg-dcae-ves-collector
225 depends_on:
226 - consul
227
228
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100229 cbs:
230 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
231 ports:
232 - "10000:10000"
233 environment:
234 - CONSUL_HOST
235 depends_on:
236 - consul-cfg
grabinsk98daff82019-05-08 13:07:45 +0200237 healthcheck:
238 test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
239 interval: 3s
240 timeout: 2s
241 retries: 20
Marcin Migdalfba99a52019-04-15 14:36:45 +0200242 container_name: cbs
243
244
245