blob: 2ca2c8d50b851e67ef83f884eebab1713bdf5918 [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:
grabinskec1d73a2019-06-17 11:02:01 +020011 - HOSTNAME=dcae-prh
12 - CONSUL_HOST # not in use, but still required by SDK - should be removed later on
Piotr Bocheński2378ea12019-03-12 16:49:08 +010013 - CONFIG_BINDING_SERVICE
grabinskec1d73a2019-06-17 11:02:01 +020014 - CONFIG_BINDING_SERVICE_SERVICE_PORT
grabinsk0fc9eab2019-05-23 13:34:38 +020015 container_name: prh
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010016 depends_on:
grabinsk98daff82019-05-08 13:07:45 +020017 cbs:
18 condition: service_healthy
19 dmaap-mr:
20 condition: service_started
21 aai:
22 condition: service_started
pkaras55d36862018-10-17 15:08:34 +020023
Marcin Migdal4882c742019-04-09 10:49:37 +020024 dmaap-mr:
Gary Wu9abb61c2018-09-27 10:38:50 -070025 build:
26 context: simulator
27 dockerfile: DMaaP_simulator
28 ports:
29 - "2222:2222"
pkarasc7abba82018-10-22 12:22:35 +020030 - "2223:2223"
31 - "2224:2224"
Gary Wu9abb61c2018-09-27 10:38:50 -070032 container_name: dmaap_simulator
33
34 aai:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010035 build:
36 context: simulator
37 dockerfile: AAI_simulator
38 ports:
Gary Wu9abb61c2018-09-27 10:38:50 -070039 - "3333:3333"
pkaras55d36862018-10-17 15:08:34 +020040 - "3334:3334"
41 - "3335:3335"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010042 container_name: aai_simulator
Piotr Bocheński2378ea12019-03-12 16:49:08 +010043
44 consul:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010045 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010046 ports:
47 - "8500:8500"
Marcin Migdal0a5e1152019-04-10 16:13:08 +020048 command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
Piotr Bocheński2378ea12019-03-12 16:49:08 +010049 volumes:
50 - ./consul.d/:/consul/consul.d
Marcin Migdal26125b12019-04-11 16:17:18 +020051 container_name: consul
Piotr Bocheński2378ea12019-03-12 16:49:08 +010052
53 consul-cfg:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010054 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010055 restart: on-failure
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010056 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{
grabinsk01d354e2019-06-19 14:46:15 +020057 "cbs.updates-interval": 0,
grabinskec1d73a2019-06-17 11:02:01 +020058 "logging.level.org.onap.dcaegen2.services.prh": "debug",
59 "logging.level.org.onap.dcaegen2.services.sdk": "debug",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020060 "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
61 "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
62 "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",
63 "dmaap.dmaapConsumerConfiguration.consumerId": "c12",
Marcin Migdale12311d2019-04-08 11:53:21 +020064 "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020065 "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020066 "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
67 "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
68 "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020069 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
70 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
71 "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
Marcin Migdal70c4e532019-04-16 14:35:58 +020072 "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020073 "aai.aaiClientConfiguration.aaiUserName": "DCAE",
74 "aai.aaiClientConfiguration.aaiUserPassword": "DCAE",
75 "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true,
Marcin Migdale1a02dc2019-04-08 12:29:04 +020076 "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
Marcin Migdal84372b92019-04-09 14:55:48 +020077 "aai.aaiClientConfiguration.aaiHeaders":{
micdziedc6d42562019-06-04 12:29:46 +020078 "X-FromAppId": "prh",
79 "X-TransactionId": "9999",
80 "Accept": "application/json",
81 "Real-Time": "true",
82 "Authorization": "Basic QUFJOkFBSQ=="
Marcin Migdal84372b92019-04-09 14:55:48 +020083 },
grabinsk0fc9eab2019-05-23 13:34:38 +020084 "security.trustStorePath":"/tmp/certs/truststore.jks",
85 "security.trustStorePasswordPath":"/tmp/certs/truststore.password",
86 "security.keyStorePath":"/tmp/certs/keystore.p12",
87 "security.keyStorePasswordPath":"/tmp/certs/keystore.password",
88 "security.enableAaiCertAuth":true,
grabinsk6d259372019-05-29 10:19:10 +020089 "security.enableDmaapCertAuth":true,
Marcin Migdal4882c742019-04-09 10:49:37 +020090
91 "streams_publishes":{
92 "pnf-update":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +020093 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +020094 "dmaap_info":{
grabinsk6d259372019-05-29 10:19:10 +020095 "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_UPDATE"
Marcin Migdal4882c742019-04-09 10:49:37 +020096 }
97 },
98 "pnf-ready":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +020099 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200100 "dmaap_info":{
grabinsk6d259372019-05-29 10:19:10 +0200101 "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_READY"
Marcin Migdal4882c742019-04-09 10:49:37 +0200102 }
103 }
104 },
105 "streams_subscribes":{
106 "ves-reg-output":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200107 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200108 "dmaap_info":{
grabinsk6d259372019-05-29 10:19:10 +0200109 "topic_url":"https://dmaap-mr:2223/events/unauthenticated.VES_PNFREG_OUTPUT"
Marcin Migdal4882c742019-04-09 10:49:37 +0200110 }
111 }
112 }
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100113 }'
114 ]
Marcin Migdal26125b12019-04-11 16:17:18 +0200115 container_name: consul-cfg
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100116 depends_on:
117 - consul
118
Marcin Migdal9717aba2019-05-08 14:52:49 +0200119 consul-cfg-dcae-ves-collector:
120 image: consul:1.0.6
121 restart: on-failure
122 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector",'{
123 "collector.dynamic.config.update.frequency": "5",
124 "event.transform.flag": "0",
125 "collector.schema.checkflag": "1",
126 "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",
127 "collector.service.port": "8080",
128 "collector.schema.file":"{
129 \"v1\":\"./etc/CommonEventFormat_27.2.json\",
130 \"v2\":\"./etc/CommonEventFormat_27.2.json\",
131 \"v3\":\"./etc/CommonEventFormat_27.2.json\",
132 \"v4\":\"./etc/CommonEventFormat_27.2.json\",
133 \"v5\":\"./etc/CommonEventFormat_28.4.1.json\",
134 \"v7\":\"./etc/CommonEventFormat_30.0.1.json\"
135 }",
136 "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile",
137 "collector.inputQueue.maxPending": "8096",
138 "streams_publishes":{
139 "ves-measurement": {
140 "type": "message_router",
141 "dmaap_info": {
142 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/"
143 }
144 },
145 "ves-fault": {
146 "type": "message_router",
147 "dmaap_info": {
148 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/"
149 }
150 },
151 "ves-pnfRegistration": {
152 "type": "message_router",
153 "dmaap_info": {
154 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/"
155 }
156 },
157 "ves-other": {
158 "type": "message_router",
159 "dmaap_info": {
160 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/"
161 }
162 },
163 "ves-heartbeat": {
164 "type": "message_router",
165 "dmaap_info": {
166 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/"
167 }
168 },
169 "ves-notification": {
170 "type": "message_router",
171 "dmaap_info": {
172 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/"
173 }
174 }
175 },
176 "collector.service.secure.port": "8443",
177 "header.authflag": "0",
178 "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore",
179 "collector.keystore.alias":
180 "dynamically generated",
181 "services_calls": [],
182 "header.authlist": "sample1,c2FtcGxlMQ=="
183 }']
184 container_name: consul-cfg-dcae-ves-collector
185 depends_on:
186 - consul
187
188
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100189 cbs:
190 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
191 ports:
192 - "10000:10000"
193 environment:
194 - CONSUL_HOST
195 depends_on:
196 - consul-cfg
grabinsk98daff82019-05-08 13:07:45 +0200197 healthcheck:
198 test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
199 interval: 3s
200 timeout: 2s
201 retries: 20
Marcin Migdalfba99a52019-04-15 14:36:45 +0200202 container_name: cbs