blob: 992534fbe6598077f12de8df397961585fa5b703 [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
159 cbs:
160 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
161 ports:
162 - "10000:10000"
163 environment:
164 - CONSUL_HOST
165 depends_on:
166 - consul-cfg
grabinsk98daff82019-05-08 13:07:45 +0200167 healthcheck:
168 test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
169 interval: 3s
170 timeout: 2s
171 retries: 20
Marcin Migdalfba99a52019-04-15 14:36:45 +0200172 container_name: cbs
173
174
175