blob: bad0593257e69cd7c5fc1778c2d6d5bfe13d46f1 [file] [log] [blame]
Taka Cho6d188af2021-01-11 16:48:33 -05001#
2# ===========LICENSE_START====================================================
3# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -04004# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
ktimoney88a991b2021-08-09 17:23:35 +01005# Modification Copyright 2021. Nordix Foundation.
Taka Cho6d188af2021-01-11 16:48:33 -05006# ============================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END=====================================================
19#
20version: '2'
21services:
22 mariadb:
23 image: nexus3.onap.org:10001/mariadb:${POLICY_MARIADB_VER}
24 container_name: mariadb
25 hostname: mariadb
26 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
27 env_file: config/db/db.conf
28 volumes:
29 - ./config/db:/docker-entrypoint-initdb.d:ro
30 expose:
31 - 3306
ktimoney88a991b2021-08-09 17:23:35 +010032 policy-db-migrator:
33 image: nexus3.onap.org:10001/onap/policy-db-migrator:${POLICY_DOCKER_VERSION}
34 container_name: policy-db-migrator
35 hostname: policy-db-migrator
36 depends_on:
37 - mariadb
38 expose:
39 - 6824
40 env_file: config/db/db.conf
41 environment:
42 SQL_DB: policyadmin
43 SQL_HOST: mariadb
44 volumes:
45 - ./db_migrator_policy_init.sh:/opt/app/policy/bin/db_migrator_policy_init.sh:ro
46 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
47 entrypoint: /opt/app/policy/bin/wait_for_port.sh
48 command: [
49 '-c',
50 '/opt/app/policy/bin/db_migrator_policy_init.sh',
51 'mariadb', '3306'
52 ]
Jim Hahn3b56db72021-06-14 10:04:00 -040053 simulator:
Taka Cho6d188af2021-01-11 16:48:33 -050054 image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
Jim Hahn3b56db72021-06-14 10:04:00 -040055 container_name: simulator
56 hostname: simulator
57 networks:
58 default:
59 aliases:
60 - message-router
61 - aai-sim
62 - grpc-sim
63 - sdnc-sim
64 - so-sim
65 - vfc-sim
Taka Cho6d188af2021-01-11 16:48:33 -050066 volumes:
67 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040068 - ./config/ks.jks:/opt/app/policy/simulators/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040069 - ./config/policy-truststore:/opt/app/policy/simulators/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050070 expose:
71 - 6666
72 - 6668
73 - 6669
74 - 6670
75 - 3905
a.sreekumar9a12d022021-07-08 15:32:52 +010076 - 6680
Taka Cho6d188af2021-01-11 16:48:33 -050077 api:
78 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
79 container_name: policy-api
80 depends_on:
ktimoney88a991b2021-08-09 17:23:35 +010081 - policy-db-migrator
Taka Cho6d188af2021-01-11 16:48:33 -050082 hostname: policy-api
83 expose:
84 - 6969
85 volumes:
Jim Hahn39b7b982021-03-16 14:52:34 -040086 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040087 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050088 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
89 entrypoint: ./wait_for_port.sh
90 command: [
91 '-c', './policy-api.sh',
ktimoney88a991b2021-08-09 17:23:35 +010092 'mariadb', '3306',
93 'policy-db-migrator', '6824'
Taka Cho6d188af2021-01-11 16:48:33 -050094 ]
95 pap:
96 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
97 container_name: policy-pap
98 depends_on:
99 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400100 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500101 - api
102 hostname: policy-pap
103 expose:
104 - 6969
105 volumes:
106 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
Ram Krishna Vermadc2d4732021-08-31 17:11:06 -0400107 - ./config/pap/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400108 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400109 - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500110 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
111 entrypoint: ./wait_for_port.sh
112 command: [
113 '-c', './policy-pap.sh',
114 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400115 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500116 'api', '6969'
117 ]
118 xacml-pdp:
119 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
120 container_name: policy-xacml-pdp
121 depends_on:
122 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400123 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500124 - pap
125 hostname: policy-xacml-pdp
126 expose:
127 - 6969
128 volumes:
129 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400130 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400131 - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500132 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
133 entrypoint: ./wait_for_port.sh
134 command: [
135 '-c', './policy-pdpx.sh',
136 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400137 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500138 'pap', '6969'
139 ]
140 drools:
141 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
142 container_name: drools
143 depends_on:
144 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400145 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500146 - pap
147 hostname: drools
148 expose:
149 - 6969
150 - 9696
151 volumes:
152 - ./config/drools/custom:/tmp/policy-install/config:ro
153 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
154 env_file:
155 - config/drools/env/base.conf
156 entrypoint: /opt/app/policy/bin/wait_for_port.sh
157 command: [
158 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
159 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400160 'message-router', '3905'
Taka Cho6d188af2021-01-11 16:48:33 -0500161 ]
162 drools-apps:
163 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
164 container_name: drools-apps
165 depends_on:
166 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400167 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500168 - pap
169 - xacml-pdp
170 hostname: drools-apps
171 expose:
172 - 6969
173 - 9696
174 volumes:
175 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400176 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500177 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
178 env_file:
179 - config/drools-apps/env/base.conf
180 - config/drools-apps/env/feature-healthcheck.conf
181 - config/drools-apps/env/feature-pooling-dmaap.conf
182 entrypoint: /opt/app/policy/bin/wait_for_port.sh
183 command: [
184 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
185 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400186 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500187 'pap', '6969',
Jim Hahn3b56db72021-06-14 10:04:00 -0400188 'aai-sim', '6666',
189 'sdnc-sim', '6668',
190 'so-sim', '6669',
191 'vfc-sim', '6670'
Taka Cho6d188af2021-01-11 16:48:33 -0500192 ]
193 apex-pdp:
194 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
195 container_name: policy-apex-pdp
196 depends_on:
197 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400198 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500199 - pap
200 hostname: policy-apex-pdp
201 expose:
202 - 6969
203 - 23324
204 volumes:
205 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400206 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400207 - ./config/policy-truststore:/opt/app/policy/apex-pdp/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500208 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
209 entrypoint: /opt/app/policy/bin/wait_for_port.sh
210 command: [
211 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
212 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400213 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500214 'pap', '6969'
215 ]
216 distribution:
217 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
218 container_name: policy-distribution
219 depends_on:
220 - mariadb
221 - api
222 - pap
223 - apex-pdp
224 hostname: policy-distribution
225 volumes:
226 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400227 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400228 - ./config/policy-truststore:/opt/app/policy/distribution/etc/ssl/policy-truststore:ro
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -0400229 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500230 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
231 entrypoint: /opt/app/policy/bin/wait_for_port.sh
232 command: [
233 '-c', './policy-dist.sh',
234 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400235 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500236 'pap', '6969',
237 'apex-pdp', '6969'
238 ]
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100239 policy-clamp-cl-runtime:
240 image: onap/policy-clamp-cl-runtime:latest
241 container_name: policy-clamp-cl-runtime
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100242 depends_on:
243 - mariadb
244 - simulator
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100245 - policy-clamp-cl-http-ppnt
246 - policy-clamp-cl-k8s-ppnt
247 - policy-clamp-cl-pf-ppnt
248 hostname: policy-clamp-cl-runtime
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100249 expose:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100250 - 6969
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100251 volumes:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100252 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100253 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100254 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100255 entrypoint: /opt/app/policy/bin/wait_for_port.sh
256 command: [
257 '-c', './controlloop-runtime.sh',
258 'message-router', '3905'
259 ]
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100260 policy-clamp-cl-http-ppnt:
261 image: onap/policy-clamp-cl-http-ppnt:latest
262 container_name: policy-clamp-cl-http-ppnt
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100263 depends_on:
264 - simulator
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100265 hostname: policy-clamp-cl-http-ppnt
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100266 expose:
267 - 6971
268 volumes:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100269 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100270 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100271 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100272 entrypoint: /opt/app/policy/bin/wait_for_port.sh
273 command: [
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100274 '-c', './http-participant.sh',
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100275 'message-router', '3905'
276 ]
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100277 policy-clamp-cl-k8s-ppnt:
278 image: onap/policy-clamp-cl-k8s-ppnt:latest
279 container_name: policy-clamp-cl-k8s-ppnt
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100280 depends_on:
281 - simulator
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100282 hostname: policy-clamp-cl-k8s-ppnt
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100283 expose:
284 - 6972
285 volumes:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100286 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100287 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100288 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
289 entrypoint: /opt/app/policy/bin/wait_for_port.sh
290 command: [
291 '-c', './kubernetes-participant.sh',
292 'message-router', '3905'
293 ]
294 policy-clamp-cl-pf-ppnt:
295 image: onap/policy-clamp-cl-pf-ppnt:latest
296 container_name: policy-clamp-cl-pf-ppnt
297 depends_on:
298 - simulator
299 - api
300 hostname: policy-clamp-cl-pf-ppnt
301 expose:
302 - 6973
303 volumes:
304 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
305 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
306 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
saul.gilld6803f72021-11-10 14:44:57 +0000307 - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/config/PolicyParticipantParameters.yaml:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100308 entrypoint: /opt/app/policy/bin/wait_for_port.sh
309 command: [
310 '-c', './policy-participant.sh',
311 'message-router', '3905'
312 ]