blob: 2ac9b90d2efb80711087c3598189cc5d18a3312a [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
saul.gill26424502022-03-15 11:56:01 +000030 - ./config/clamp/policy-clamp-create-tables.sql:/tmp/policy-clamp-create-tables.sql
Taka Cho6d188af2021-01-11 16:48:33 -050031 expose:
32 - 3306
ktimoney88a991b2021-08-09 17:23:35 +010033 policy-db-migrator:
34 image: nexus3.onap.org:10001/onap/policy-db-migrator:${POLICY_DOCKER_VERSION}
35 container_name: policy-db-migrator
36 hostname: policy-db-migrator
37 depends_on:
38 - mariadb
39 expose:
40 - 6824
41 env_file: config/db/db.conf
42 environment:
43 SQL_DB: policyadmin
44 SQL_HOST: mariadb
45 volumes:
46 - ./db_migrator_policy_init.sh:/opt/app/policy/bin/db_migrator_policy_init.sh:ro
47 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
48 entrypoint: /opt/app/policy/bin/wait_for_port.sh
49 command: [
50 '-c',
51 '/opt/app/policy/bin/db_migrator_policy_init.sh',
52 'mariadb', '3306'
53 ]
Jim Hahn3b56db72021-06-14 10:04:00 -040054 simulator:
Taka Cho6d188af2021-01-11 16:48:33 -050055 image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
Jim Hahn3b56db72021-06-14 10:04:00 -040056 container_name: simulator
57 hostname: simulator
58 networks:
59 default:
60 aliases:
61 - message-router
62 - aai-sim
63 - grpc-sim
64 - sdnc-sim
65 - so-sim
66 - vfc-sim
Taka Cho6d188af2021-01-11 16:48:33 -050067 volumes:
68 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040069 - ./config/ks.jks:/opt/app/policy/simulators/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040070 - ./config/policy-truststore:/opt/app/policy/simulators/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050071 expose:
72 - 6666
73 - 6668
74 - 6669
75 - 6670
76 - 3905
a.sreekumar9a12d022021-07-08 15:32:52 +010077 - 6680
Taka Cho6d188af2021-01-11 16:48:33 -050078 api:
79 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
80 container_name: policy-api
81 depends_on:
ktimoney88a991b2021-08-09 17:23:35 +010082 - policy-db-migrator
Taka Cho6d188af2021-01-11 16:48:33 -050083 hostname: policy-api
84 expose:
85 - 6969
86 volumes:
Jim Hahn39b7b982021-03-16 14:52:34 -040087 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040088 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050089 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
90 entrypoint: ./wait_for_port.sh
91 command: [
92 '-c', './policy-api.sh',
ktimoney88a991b2021-08-09 17:23:35 +010093 'mariadb', '3306',
94 'policy-db-migrator', '6824'
Taka Cho6d188af2021-01-11 16:48:33 -050095 ]
96 pap:
97 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
98 container_name: policy-pap
99 depends_on:
100 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400101 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500102 - api
103 hostname: policy-pap
104 expose:
105 - 6969
106 volumes:
a.sreekumar794b0c92021-12-10 17:17:20 +0000107 - ./config/pap/papParameters.yaml:/opt/app/policy/pap/etc/papParameters.yaml:ro
Ram Krishna Vermadc2d4732021-08-31 17:11:06 -0400108 - ./config/pap/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400109 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400110 - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500111 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
112 entrypoint: ./wait_for_port.sh
113 command: [
114 '-c', './policy-pap.sh',
115 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400116 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500117 'api', '6969'
118 ]
119 xacml-pdp:
120 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
121 container_name: policy-xacml-pdp
122 depends_on:
123 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400124 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500125 - pap
126 hostname: policy-xacml-pdp
127 expose:
128 - 6969
129 volumes:
130 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400131 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400132 - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500133 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
134 entrypoint: ./wait_for_port.sh
135 command: [
136 '-c', './policy-pdpx.sh',
137 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400138 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500139 'pap', '6969'
140 ]
141 drools:
142 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
143 container_name: drools
144 depends_on:
145 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400146 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500147 - pap
148 hostname: drools
149 expose:
150 - 6969
151 - 9696
152 volumes:
153 - ./config/drools/custom:/tmp/policy-install/config:ro
154 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
155 env_file:
156 - config/drools/env/base.conf
157 entrypoint: /opt/app/policy/bin/wait_for_port.sh
158 command: [
159 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
160 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400161 'message-router', '3905'
Taka Cho6d188af2021-01-11 16:48:33 -0500162 ]
163 drools-apps:
164 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
165 container_name: drools-apps
166 depends_on:
167 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400168 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500169 - pap
170 - xacml-pdp
171 hostname: drools-apps
172 expose:
173 - 6969
174 - 9696
175 volumes:
176 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400177 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500178 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
179 env_file:
180 - config/drools-apps/env/base.conf
181 - config/drools-apps/env/feature-healthcheck.conf
182 - config/drools-apps/env/feature-pooling-dmaap.conf
183 entrypoint: /opt/app/policy/bin/wait_for_port.sh
184 command: [
185 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
186 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400187 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500188 'pap', '6969',
Jim Hahn3b56db72021-06-14 10:04:00 -0400189 'aai-sim', '6666',
190 'sdnc-sim', '6668',
191 'so-sim', '6669',
192 'vfc-sim', '6670'
Taka Cho6d188af2021-01-11 16:48:33 -0500193 ]
194 apex-pdp:
195 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
196 container_name: policy-apex-pdp
197 depends_on:
198 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400199 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500200 - pap
201 hostname: policy-apex-pdp
202 expose:
203 - 6969
204 - 23324
205 volumes:
206 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400207 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400208 - ./config/policy-truststore:/opt/app/policy/apex-pdp/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500209 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
210 entrypoint: /opt/app/policy/bin/wait_for_port.sh
211 command: [
212 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
213 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400214 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500215 'pap', '6969'
216 ]
217 distribution:
218 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
219 container_name: policy-distribution
220 depends_on:
221 - mariadb
222 - api
223 - pap
224 - apex-pdp
225 hostname: policy-distribution
226 volumes:
227 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400228 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400229 - ./config/policy-truststore:/opt/app/policy/distribution/etc/ssl/policy-truststore:ro
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -0400230 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500231 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
232 entrypoint: /opt/app/policy/bin/wait_for_port.sh
233 command: [
234 '-c', './policy-dist.sh',
235 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400236 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500237 'pap', '6969',
238 'apex-pdp', '6969'
239 ]
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000240 policy-clamp-runtime-acm:
241 image: nexus3.onap.org:10001/onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
242 container_name: policy-clamp-runtime-acm
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100243 depends_on:
244 - mariadb
245 - simulator
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000246 hostname: policy-clamp-runtime-acm
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100247 expose:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100248 - 6969
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100249 volumes:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100250 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100251 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100252 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100253 entrypoint: /opt/app/policy/bin/wait_for_port.sh
254 command: [
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000255 '-c', './acm-runtime.sh',
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100256 'message-router', '3905'
257 ]
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000258 policy-clamp-ac-http-ppnt:
259 image: nexus3.onap.org:10001/onap/policy-clamp-ac-http-ppnt:${POLICY_CLAMP_VERSION}
260 container_name: policy-clamp-ac-http-ppnt
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000261 hostname: policy-clamp-ac-http-ppnt
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100262 expose:
263 - 6971
264 volumes:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100265 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100266 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100267 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100268 entrypoint: /opt/app/policy/bin/wait_for_port.sh
269 command: [
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100270 '-c', './http-participant.sh',
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100271 'message-router', '3905'
272 ]
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000273 policy-clamp-ac-k8s-ppnt:
274 image: nexus3.onap.org:10001/onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_VERSION}
275 container_name: policy-clamp-ac-k8s-ppnt
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000276 hostname: policy-clamp-ac-k8s-ppnt
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100277 expose:
278 - 6972
279 volumes:
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100280 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100281 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100282 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
283 entrypoint: /opt/app/policy/bin/wait_for_port.sh
284 command: [
285 '-c', './kubernetes-participant.sh',
286 'message-router', '3905'
287 ]
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000288 policy-clamp-ac-pf-ppnt:
289 image: nexus3.onap.org:10001/onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_VERSION}
290 container_name: policy-clamp-ac-pf-ppnt
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100291 depends_on:
292 - simulator
293 - api
Sirisha_Manchikantie8b643b2022-03-22 16:20:18 +0000294 - policy-clamp-ac-http-ppnt
295 - policy-clamp-ac-k8s-ppnt
Sirisha_Manchikantib71490f2022-02-17 17:55:21 +0000296 hostname: policy-clamp-ac-pf-ppnt
Sirisha_Manchikanti826d9ed2021-09-17 17:33:11 +0100297 expose:
298 - 6973
299 volumes:
300 - ./config/policy-truststore:/opt/app/policy/clamp/etc/ssl/policy-truststore:ro
301 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
302 - ./config/ks.jks:/opt/app/policy/clamp/etc/ssl/policy-keystore:ro
saul.gilld6803f72021-11-10 14:44:57 +0000303 - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/config/PolicyParticipantParameters.yaml:ro
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100304 entrypoint: /opt/app/policy/bin/wait_for_port.sh
305 command: [
306 '-c', './policy-participant.sh',
307 'message-router', '3905'
308 ]