blob: 45c71dc8a4984f299adcd5f50239cddc0451ddc2 [file] [log] [blame]
Piotr Bocheński2378ea12019-03-12 16:49:08 +01001version: "3"
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:
Piotr Bocheński2378ea12019-03-12 16:49:08 +010013 - cbs
Marcin Migdal4882c742019-04-09 10:49:37 +020014 - dmaap-mr
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010015 - aai
Gary Wu9abb61c2018-09-27 10:38:50 -070016
pkaras55d36862018-10-17 15:08:34 +020017 ssl_prh:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010018 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010019 ports:
20 - "8200:8100"
21 - "8533:8433"
22 volumes:
23 - ./simulator/certs:/tmp/certs
Piotr Bocheński2378ea12019-03-12 16:49:08 +010024 environment:
25 - LOG_LEVEL
26 - PRH_LOG_LEVEL
27 - HOSTNAME
28 - CONSUL_HOST
29 - CONFIG_BINDING_SERVICE
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010030 container_name: ssl_prh
31 depends_on:
Piotr Bocheński2378ea12019-03-12 16:49:08 +010032 - cbs
Marcin Migdal4882c742019-04-09 10:49:37 +020033 - dmaap-mr
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010034 - aai
pkaras55d36862018-10-17 15:08:34 +020035
Marcin Migdal4882c742019-04-09 10:49:37 +020036 dmaap-mr:
Gary Wu9abb61c2018-09-27 10:38:50 -070037 build:
38 context: simulator
39 dockerfile: DMaaP_simulator
40 ports:
41 - "2222:2222"
pkarasc7abba82018-10-22 12:22:35 +020042 - "2223:2223"
43 - "2224:2224"
Gary Wu9abb61c2018-09-27 10:38:50 -070044 container_name: dmaap_simulator
45
46 aai:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010047 build:
48 context: simulator
49 dockerfile: AAI_simulator
50 ports:
Gary Wu9abb61c2018-09-27 10:38:50 -070051 - "3333:3333"
pkaras55d36862018-10-17 15:08:34 +020052 - "3334:3334"
53 - "3335:3335"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010054 container_name: aai_simulator
Piotr Bocheński2378ea12019-03-12 16:49:08 +010055
56 consul:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010057 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010058 ports:
59 - "8500:8500"
Marcin Migdal0a5e1152019-04-10 16:13:08 +020060 command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
Piotr Bocheński2378ea12019-03-12 16:49:08 +010061 volumes:
62 - ./consul.d/:/consul/consul.d
63
64 consul-cfg:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010065 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010066 restart: on-failure
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010067 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{
Marcin Migdal2a64cd82019-04-09 13:13:41 +020068 "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT",
Marcin Migdal4882c742019-04-09 10:49:37 +020069 "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr",
Piotr Bocheński2378ea12019-03-12 16:49:08 +010070 "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2223,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020071 "dmaap.dmaapConsumerConfiguration.dmaapTopicName": "events/unauthenticated.VES_PNFREG_OUTPUT",
72 "dmaap.dmaapConsumerConfiguration.dmaapProtocol":"http",
73 "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
74 "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
75 "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",
76 "dmaap.dmaapConsumerConfiguration.consumerId": "c12",
Marcin Migdale12311d2019-04-08 11:53:21 +020077 "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020078 "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
79 "dmaap.dmaapConsumerConfiguration.messageLimit": -1,
80
Marcin Migdal2a64cd82019-04-09 13:13:41 +020081 "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY",
Marcin Migdal4882c742019-04-09 10:49:37 +020082 "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr",
Piotr Bocheński2378ea12019-03-12 16:49:08 +010083 "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2223,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020084 "dmaap.dmaapProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_READY",
85 "dmaap.dmaapProducerConfiguration.dmaapProtocol":"http",
86 "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
87 "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
88 "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json",
89
Marcin Migdal2a64cd82019-04-09 13:13:41 +020090 "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE",
Marcin Migdal4882c742019-04-09 10:49:37 +020091 "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020092 "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2223,
Marcin Migdale12311d2019-04-08 11:53:21 +020093 "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE",
94 "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http",
Marcin Migdalf0e481e2019-04-08 10:15:17 +020095 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
96 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
97 "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
98
Marcin Migdal84372b92019-04-09 14:55:48 +020099 "aai.aaiClientConfiguration.pnfUrl":"https://aai:3333/aai/v12/network/pnfs/pnf",
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100100 "aai.aaiClientConfiguration.aaiHost":"aai",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200101 "aai.aaiClientConfiguration.aaiHostPortNumber":3334,
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100102 "aai.aaiClientConfiguration.aaiProtocol":"https",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200103 "aai.aaiClientConfiguration.aaiUserName": "DCAE",
104 "aai.aaiClientConfiguration.aaiUserPassword": "DCAE",
105 "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true,
106 "aai.aaiClientConfiguration.aaiBasePath": "/aai/v12",
107 "aai.aaiClientConfiguration.aaiPnfPath": "/network/pnfs/pnf",
Marcin Migdale1a02dc2019-04-08 12:29:04 +0200108 "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
Marcin Migdal84372b92019-04-09 14:55:48 +0200109 "aai.aaiClientConfiguration.aaiHeaders":{
110 "X-FromAppId": "prh",
111 "X-TransactionId": "9999",
112 "Accept": "application/json",
113 "Real-Time": "true",
114 "Authorization": "Basic QUFJOkFBSQ=="
115 },
Marcin Migdale1a02dc2019-04-08 12:29:04 +0200116
117 "security.trustStorePath":"change it",
118 "security.trustStorePasswordPath":"change it",
119 "security.keyStorePath":"change it",
120 "security.keyStorePasswordPath":"change it",
121 "security.enableAaiCertAuth":false,
Marcin Migdal4882c742019-04-09 10:49:37 +0200122 "security.enableDmaapCertAuth":false,
123
124 "streams_publishes":{
125 "pnf-update":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200126 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200127 "dmaap_info":{
128 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
129 }
130 },
131 "pnf-ready":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200132 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200133 "dmaap_info":{
134 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
135 }
136 }
137 },
138 "streams_subscribes":{
139 "ves-reg-output":{
Marcin Migdal92c6c3c2019-04-11 14:07:59 +0200140 "type": "message_router",
Marcin Migdal4882c742019-04-09 10:49:37 +0200141 "dmaap_info":{
142 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
143 }
144 }
145 }
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100146 }'
147 ]
148 depends_on:
149 - consul
150
151 cbs:
152 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
153 ports:
154 - "10000:10000"
155 environment:
156 - CONSUL_HOST
157 depends_on:
158 - consul-cfg