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