blob: 0f66aa14a17ad0847b831432ada02756fd028833 [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
5 command: >
Marcin Migdal4882c742019-04-09 10:49:37 +02006 --dmaap.dmaapConsumerConfiguration.dmaapHostName=dmaap-mr
Gary Wu9abb61c2018-09-27 10:38:50 -07007 --dmaap.dmaapConsumerConfiguration.dmaapPortNumber=2222
Marcin Migdal4882c742019-04-09 10:49:37 +02008 --dmaap.dmaapProducerConfiguration.dmaapHostName=dmaap-mr
Gary Wu9abb61c2018-09-27 10:38:50 -07009 --dmaap.dmaapProducerConfiguration.dmaapPortNumber=2222
10 --aai.aaiClientConfiguration.aaiHostPortNumber=3333
11 --aai.aaiClientConfiguration.aaiHost=aai
12 --aai.aaiClientConfiguration.aaiProtocol=http
Gary Wu9abb61c2018-09-27 10:38:50 -070013 ports:
14 - "8100:8100"
15 - "8433:8433"
Piotr Bocheński2378ea12019-03-12 16:49:08 +010016 environment:
17 - LOG_LEVEL
18 - PRH_LOG_LEVEL
Gary Wu9abb61c2018-09-27 10:38:50 -070019 container_name: prh
20 depends_on:
Piotr Bocheński2378ea12019-03-12 16:49:08 +010021 - cbs
Marcin Migdal4882c742019-04-09 10:49:37 +020022 - dmaap-mr
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010023 - aai
Gary Wu9abb61c2018-09-27 10:38:50 -070024
pkaras55d36862018-10-17 15:08:34 +020025 ssl_prh:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010026 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
27 command: >
Marcin Migdal4882c742019-04-09 10:49:37 +020028 --dmaap.dmaapConsumerConfiguration.dmaapHostName=dmaap-mr
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010029 --dmaap.dmaapConsumerConfiguration.dmaapPortNumber=2223
30 --dmaap.dmaapConsumerConfiguration.dmaapProtocol=https
Marcin Migdal4882c742019-04-09 10:49:37 +020031 --dmaap.dmaapProducerConfiguration.dmaapHostName=dmaap-mr
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010032 --dmaap.dmaapProducerConfiguration.dmaapPortNumber=2223
33 --dmaap.dmaapProducerConfiguration.dmaapProtocol=https
34 --aai.aaiClientConfiguration.aaiHostPortNumber=3334
35 --aai.aaiClientConfiguration.aaiHost=aai
36 --aai.aaiClientConfiguration.aaiProtocol=https
37 --security.enableAaiCertAuth=true
38 --security.enableDmaapCertAuth=true
39 --security.keyStorePath=/tmp/certs/org.onap.dcae.jks
40 --security.keyStorePasswordPath=/tmp/certs/keystore.password
41 --security.trustStorePath=/tmp/certs/org.onap.dcae.trust.jks
42 --security.trustStorePasswordPath=/tmp/certs/truststore.password
43 ports:
44 - "8200:8100"
45 - "8533:8433"
46 volumes:
47 - ./simulator/certs:/tmp/certs
Piotr Bocheński2378ea12019-03-12 16:49:08 +010048 environment:
49 - LOG_LEVEL
50 - PRH_LOG_LEVEL
51 - HOSTNAME
52 - CONSUL_HOST
53 - CONFIG_BINDING_SERVICE
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010054 container_name: ssl_prh
55 depends_on:
Piotr Bocheński2378ea12019-03-12 16:49:08 +010056 - cbs
Marcin Migdal4882c742019-04-09 10:49:37 +020057 - dmaap-mr
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010058 - aai
pkaras55d36862018-10-17 15:08:34 +020059
Marcin Migdal4882c742019-04-09 10:49:37 +020060 dmaap-mr:
Gary Wu9abb61c2018-09-27 10:38:50 -070061 build:
62 context: simulator
63 dockerfile: DMaaP_simulator
64 ports:
65 - "2222:2222"
pkarasc7abba82018-10-22 12:22:35 +020066 - "2223:2223"
67 - "2224:2224"
Gary Wu9abb61c2018-09-27 10:38:50 -070068 container_name: dmaap_simulator
69
70 aai:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010071 build:
72 context: simulator
73 dockerfile: AAI_simulator
74 ports:
Gary Wu9abb61c2018-09-27 10:38:50 -070075 - "3333:3333"
pkaras55d36862018-10-17 15:08:34 +020076 - "3334:3334"
77 - "3335:3335"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010078 container_name: aai_simulator
Piotr Bocheński2378ea12019-03-12 16:49:08 +010079
80 consul:
81 image: docker.io/consul:1.0.6
82 ports:
83 - "8500:8500"
Marcin Migdal0a5e1152019-04-10 16:13:08 +020084 command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
Piotr Bocheński2378ea12019-03-12 16:49:08 +010085 volumes:
86 - ./consul.d/:/consul/consul.d
87
88 consul-cfg:
89 image: docker.io/consul:1.0.6
90 restart: on-failure
91 command: ["kv", "put", "-http-addr=http://consul-server:8500", "dcae-prh", '{
Marcin Migdal2a64cd82019-04-09 13:13:41 +020092 "dmaap.dmaapConsumerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT",
Marcin Migdal4882c742019-04-09 10:49:37 +020093 "dmaap.dmaapConsumerConfiguration.dmaapHostName":"dmaap-mr",
Piotr Bocheński2378ea12019-03-12 16:49:08 +010094 "dmaap.dmaapConsumerConfiguration.dmaapPortNumber":2223,
Marcin Migdalf0e481e2019-04-08 10:15:17 +020095 "dmaap.dmaapConsumerConfiguration.dmaapTopicName": "events/unauthenticated.VES_PNFREG_OUTPUT",
96 "dmaap.dmaapConsumerConfiguration.dmaapProtocol":"http",
97 "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
98 "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
99 "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",
100 "dmaap.dmaapConsumerConfiguration.consumerId": "c12",
Marcin Migdale12311d2019-04-08 11:53:21 +0200101 "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200102 "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
103 "dmaap.dmaapConsumerConfiguration.messageLimit": -1,
104
Marcin Migdal2a64cd82019-04-09 13:13:41 +0200105 "dmaap.dmaapProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY",
Marcin Migdal4882c742019-04-09 10:49:37 +0200106 "dmaap.dmaapProducerConfiguration.dmaapHostName":"dmaap-mr",
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100107 "dmaap.dmaapProducerConfiguration.dmaapPortNumber":2223,
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200108 "dmaap.dmaapProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_READY",
109 "dmaap.dmaapProducerConfiguration.dmaapProtocol":"http",
110 "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
111 "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
112 "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json",
113
Marcin Migdal2a64cd82019-04-09 13:13:41 +0200114 "dmaap.dmaapUpdateProducerConfiguration.dmaapUrl":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE",
Marcin Migdal4882c742019-04-09 10:49:37 +0200115 "dmaap.dmaapUpdateProducerConfiguration.dmaapHostName": "dmaap-mr",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200116 "dmaap.dmaapUpdateProducerConfiguration.dmaapPortNumber": 2223,
Marcin Migdale12311d2019-04-08 11:53:21 +0200117 "dmaap.dmaapUpdateProducerConfiguration.dmaapTopicName": "events/unauthenticated.PNF_UPDATE",
118 "dmaap.dmaapUpdateProducerConfiguration.dmaapProtocol": "http",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200119 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin",
120 "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin",
121 "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json",
122
Marcin Migdal84372b92019-04-09 14:55:48 +0200123 "aai.aaiClientConfiguration.pnfUrl":"https://aai:3333/aai/v12/network/pnfs/pnf",
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100124 "aai.aaiClientConfiguration.aaiHost":"aai",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200125 "aai.aaiClientConfiguration.aaiHostPortNumber":3334,
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100126 "aai.aaiClientConfiguration.aaiProtocol":"https",
Marcin Migdalf0e481e2019-04-08 10:15:17 +0200127 "aai.aaiClientConfiguration.aaiUserName": "DCAE",
128 "aai.aaiClientConfiguration.aaiUserPassword": "DCAE",
129 "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true,
130 "aai.aaiClientConfiguration.aaiBasePath": "/aai/v12",
131 "aai.aaiClientConfiguration.aaiPnfPath": "/network/pnfs/pnf",
Marcin Migdale1a02dc2019-04-08 12:29:04 +0200132 "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
Marcin Migdal84372b92019-04-09 14:55:48 +0200133 "aai.aaiClientConfiguration.aaiHeaders":{
134 "X-FromAppId": "prh",
135 "X-TransactionId": "9999",
136 "Accept": "application/json",
137 "Real-Time": "true",
138 "Authorization": "Basic QUFJOkFBSQ=="
139 },
Marcin Migdale1a02dc2019-04-08 12:29:04 +0200140
141 "security.trustStorePath":"change it",
142 "security.trustStorePasswordPath":"change it",
143 "security.keyStorePath":"change it",
144 "security.keyStorePasswordPath":"change it",
145 "security.enableAaiCertAuth":false,
Marcin Migdal4882c742019-04-09 10:49:37 +0200146 "security.enableDmaapCertAuth":false,
147
148 "streams_publishes":{
149 "pnf-update":{
150 "dmaap_info":{
151 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
152 }
153 },
154 "pnf-ready":{
155 "dmaap_info":{
156 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
157 }
158 }
159 },
160 "streams_subscribes":{
161 "ves-reg-output":{
162 "dmaap_info":{
163 "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
164 }
165 }
166 }
Piotr Bocheński2378ea12019-03-12 16:49:08 +0100167 }'
168 ]
169 depends_on:
170 - consul
171
172 cbs:
173 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
174 ports:
175 - "10000:10000"
176 environment:
177 - CONSUL_HOST
178 depends_on:
179 - consul-cfg