blob: f8472a5d2280ca85a49e65e015684ae883c5b5be [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", '{
grabinskec1d73a2019-06-17 11:02:01 +020057 "logging.level.org.onap.dcaegen2.services.prh": "debug",
58 "logging.level.org.onap.dcaegen2.services.sdk": "debug",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020059 "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
60 "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
61 "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",
62 "dmaap.dmaapConsumerConfiguration.consumerId": "c12",
Marcin Migdale12311d2019-04-08 11:53:21 +020063 "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020064 "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020065 "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
66 "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
67 "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020068 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
69 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
70 "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
Marcin Migdal70c4e532019-04-16 14:35:58 +020071 "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020072 "aai.aaiClientConfiguration.aaiUserName": "DCAE",
73 "aai.aaiClientConfiguration.aaiUserPassword": "DCAE",
74 "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true,
Marcin Migdale1a02dc2019-04-08 12:29:04 +020075 "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
Marcin Migdal84372b92019-04-09 14:55:48 +020076 "aai.aaiClientConfiguration.aaiHeaders":{
micdziedc6d42562019-06-04 12:29:46 +020077 "X-FromAppId": "prh",
78 "X-TransactionId": "9999",
79 "Accept": "application/json",
80 "Real-Time": "true",
81 "Authorization": "Basic QUFJOkFBSQ=="
Marcin Migdal84372b92019-04-09 14:55:48 +020082 },
grabinsk0fc9eab2019-05-23 13:34:38 +020083 "security.trustStorePath":"/tmp/certs/truststore.jks",
84 "security.trustStorePasswordPath":"/tmp/certs/truststore.password",
85 "security.keyStorePath":"/tmp/certs/keystore.p12",
86 "security.keyStorePasswordPath":"/tmp/certs/keystore.password",
87 "security.enableAaiCertAuth":true,
grabinsk6d259372019-05-29 10:19:10 +020088 "security.enableDmaapCertAuth":true,
Marcin Migdal4882c742019-04-09 10:49:37 +020089
90 "streams_publishes":{
91 "pnf-update":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +020092 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +020093 "dmaap_info":{
grabinsk6d259372019-05-29 10:19:10 +020094 "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_UPDATE"
Marcin Migdal4882c742019-04-09 10:49:37 +020095 }
96 },
97 "pnf-ready":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +020098 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +020099 "dmaap_info":{
grabinsk6d259372019-05-29 10:19:10 +0200100 "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_READY"
Marcin Migdal4882c742019-04-09 10:49:37 +0200101 }
102 }
103 },
104 "streams_subscribes":{
105 "ves-reg-output":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200106 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200107 "dmaap_info":{
grabinsk6d259372019-05-29 10:19:10 +0200108 "topic_url":"https://dmaap-mr:2223/events/unauthenticated.VES_PNFREG_OUTPUT"
Marcin Migdal4882c742019-04-09 10:49:37 +0200109 }
110 }
111 }
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100112 }'
113 ]
Marcin Migdal26125b12019-04-11 16:17:18 +0200114 container_name: consul-cfg
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100115 depends_on:
116 - consul
117
Marcin Migdal9717aba2019-05-08 14:52:49 +0200118 consul-cfg-dcae-ves-collector:
119 image: consul:1.0.6
120 restart: on-failure
121 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector",'{
122 "collector.dynamic.config.update.frequency": "5",
123 "event.transform.flag": "0",
124 "collector.schema.checkflag": "1",
125 "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",
126 "collector.service.port": "8080",
127 "collector.schema.file":"{
128 \"v1\":\"./etc/CommonEventFormat_27.2.json\",
129 \"v2\":\"./etc/CommonEventFormat_27.2.json\",
130 \"v3\":\"./etc/CommonEventFormat_27.2.json\",
131 \"v4\":\"./etc/CommonEventFormat_27.2.json\",
132 \"v5\":\"./etc/CommonEventFormat_28.4.1.json\",
133 \"v7\":\"./etc/CommonEventFormat_30.0.1.json\"
134 }",
135 "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile",
136 "collector.inputQueue.maxPending": "8096",
137 "streams_publishes":{
138 "ves-measurement": {
139 "type": "message_router",
140 "dmaap_info": {
141 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/"
142 }
143 },
144 "ves-fault": {
145 "type": "message_router",
146 "dmaap_info": {
147 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/"
148 }
149 },
150 "ves-pnfRegistration": {
151 "type": "message_router",
152 "dmaap_info": {
153 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/"
154 }
155 },
156 "ves-other": {
157 "type": "message_router",
158 "dmaap_info": {
159 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/"
160 }
161 },
162 "ves-heartbeat": {
163 "type": "message_router",
164 "dmaap_info": {
165 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/"
166 }
167 },
168 "ves-notification": {
169 "type": "message_router",
170 "dmaap_info": {
171 "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/"
172 }
173 }
174 },
175 "collector.service.secure.port": "8443",
176 "header.authflag": "0",
177 "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore",
178 "collector.keystore.alias":
179 "dynamically generated",
180 "services_calls": [],
181 "header.authlist": "sample1,c2FtcGxlMQ=="
182 }']
183 container_name: consul-cfg-dcae-ves-collector
184 depends_on:
185 - consul
186
187
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100188 cbs:
189 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
190 ports:
191 - "10000:10000"
192 environment:
193 - CONSUL_HOST
194 depends_on:
195 - consul-cfg
grabinsk98daff82019-05-08 13:07:45 +0200196 healthcheck:
197 test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
198 interval: 3s
199 timeout: 2s
200 retries: 20
Marcin Migdalfba99a52019-04-15 14:36:45 +0200201 container_name: cbs