blob: a151ad4294300997cd68e8c3dde308375d67dc68 [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.
rameshiyer27f2e4da72024-01-13 21:26:09 +00005# Modification Copyright 2021-2024 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#
adheli.tavares80e382e2024-05-01 14:08:35 +010020
adheli.tavaresd802fd92024-08-15 12:39:19 +010021include:
22 - compose.common.yml
23 - compose.${database:-postgres}.yml
24
Taka Cho6d188af2021-01-11 16:48:33 -050025services:
adheli.tavaresd802fd92024-08-15 12:39:19 +010026
adheli.tavares80e382e2024-05-01 14:08:35 +010027 api:
28 image: ${CONTAINER_LOCATION}onap/policy-api:${POLICY_API_VERSION}
29 container_name: policy-api
30 hostname: policy-api
31 depends_on:
32 - policy-db-migrator
33 ports:
34 - ${API_PORT}:6969
adheli.tavaresd802fd92024-08-15 12:39:19 +010035 environment:
36 SPRING_PROFILES_ACTIVE: ${API_PROFILE:-default}
adheli.tavares80e382e2024-05-01 14:08:35 +010037 volumes:
38 - ./config/api/apiParameters.yaml:/opt/app/policy/api/etc/apiParameters.yaml:ro
39 - ./config/api/logback.xml:/opt/app/policy/api/etc/logback.xml:ro
40 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
41 entrypoint: ./wait_for_port.sh
42 command: [
43 '-c', './policy-api.sh',
adheli.tavares80e382e2024-05-01 14:08:35 +010044 'policy-db-migrator', '6824'
45 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +010046
adheli.tavares80e382e2024-05-01 14:08:35 +010047 pap:
48 image: ${CONTAINER_LOCATION}onap/policy-pap:${POLICY_PAP_VERSION}
49 container_name: policy-pap
50 hostname: policy-pap
51 depends_on:
adheli.tavares80e382e2024-05-01 14:08:35 +010052 - api
adheli.tavaresd802fd92024-08-15 12:39:19 +010053 - kafka
adheli.tavares80e382e2024-05-01 14:08:35 +010054 ports:
55 - ${PAP_PORT}:6969
adheli.tavaresd802fd92024-08-15 12:39:19 +010056 environment:
57 SPRING_PROFILES_ACTIVE: ${PAP_PROFILE:-default}
adheli.tavares80e382e2024-05-01 14:08:35 +010058 volumes:
59 - ./config/pap/papParameters.yaml:/opt/app/policy/pap/etc/papParameters.yaml:ro
adheli.tavaresd802fd92024-08-15 12:39:19 +010060 - ./config/${PROJECT:-api}/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
adheli.tavares80e382e2024-05-01 14:08:35 +010061 - ./config/pap/logback.xml:/opt/app/policy/pap/etc/logback.xml:ro
62 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
63 entrypoint: ./wait_for_port.sh
64 command: [
65 '-c', './policy-pap.sh',
adheli.tavaresd802fd92024-08-15 12:39:19 +010066 'api', '6969',
adheli.tavares80e382e2024-05-01 14:08:35 +010067 'kafka', '9092'
68 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +010069
adheli.tavares80e382e2024-05-01 14:08:35 +010070 apex-pdp:
71 image: ${CONTAINER_LOCATION}onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
72 container_name: policy-apex-pdp
73 hostname: policy-apex-pdp
74 depends_on:
adheli.tavares80e382e2024-05-01 14:08:35 +010075 - simulator
76 - kafka
77 - pap
78 ports:
79 - ${APEX_PORT}:6969
80 - ${APEX_EVENTS_PORT}:23324
81 volumes:
82 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
83 - ./config/apex-pdp/logback.xml:/opt/app/policy/apex-pdp/etc/logback.xml:ro
84 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
85 entrypoint: /opt/app/policy/bin/wait_for_port.sh
86 command: [
87 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
adheli.tavares80e382e2024-05-01 14:08:35 +010088 'kafka', '9092',
89 'pap', '6969'
90 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +010091
adheli.tavares80e382e2024-05-01 14:08:35 +010092 distribution:
93 image: ${CONTAINER_LOCATION}onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
94 container_name: policy-distribution
95 hostname: policy-distribution
96 depends_on:
adheli.tavares80e382e2024-05-01 14:08:35 +010097 - apex-pdp
98 ports:
99 - ${DIST_PORT}:6969
100 volumes:
101 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
102 - /tmp/distribution/:/opt/app/policy/distribution/etc/temp/:ro
103 - ./config/distribution/logback.xml:/opt/app/policy/distribution/etc/logback.xml:ro
104 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
105 entrypoint: /opt/app/policy/bin/wait_for_port.sh
106 command: [
107 '-c', './policy-dist.sh',
adheli.tavares80e382e2024-05-01 14:08:35 +0100108 'apex-pdp', '6969'
109 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +0100110
111 xacml-pdp:
112 image: ${CONTAINER_LOCATION}onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
113 container_name: policy-xacml-pdp
114 hostname: policy-xacml-pdp
115 depends_on:
116 - pap
117 - kafka
118 ports:
119 - ${XACML_PORT}:6969
120 - "30999:3904"
121 volumes:
122 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
123 - ./config/xacml-pdp/logback.xml:/opt/app/policy/pdpx/etc/logback.xml:ro
124 - ./config/xacml-pdp/xacml-${database:-postgres}.properties:/opt/app/policy/pdpx/apps/guard/xacml.properties:ro
125 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
126 entrypoint: ./wait_for_port.sh
127 command: [
128 '-c', './policy-pdpx.sh',
129 'pap', '6969',
130 'kafka', '9092'
131 ]
132
133 drools-pdp:
134 image: ${CONTAINER_LOCATION}onap/policy-drools:${POLICY_DROOLS_PDP_VERSION}
135 container_name: policy-drools-pdp
136 hostname: policy-drools-pdp
137 depends_on:
138 - pap
139 - kafka
140 ports:
141 - ${DROOLS_PORT}:6969
142 - ${DROOLS_TELEMETRY_PORT}:9696
143 volumes:
144 - ./config/drools-pdp/custom:/tmp/policy-install/config:ro
145 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
146 env_file:
147 - config/drools-pdp/env/base-${database:-postgres}.conf
148 entrypoint: /opt/app/policy/bin/wait_for_port.sh
149 command: [
150 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
151 'pap', '6969',
152 'kafka', '9092'
153 ]
154
155 drools-applications:
156 image: ${CONTAINER_LOCATION}onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
157 container_name: policy-drools-apps
158 hostname: policy-drools-apps
159 depends_on:
160 - pap
161 - xacml-pdp
162 - simulator
163 - kafka
164 ports:
165 - ${DROOLS_APPS_PORT}:6969
166 - ${DROOLS_APPS_TELEMETRY_PORT}:9696
167 volumes:
168 - ./config/drools-applications/custom:/tmp/policy-install/config:ro
169 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
170 env_file:
171 - config/drools-applications/env/base-${database:-postgres}.conf
172 - config/drools-applications/env/feature-healthcheck.conf
173 - config/drools-applications/env/feature-pooling-messages.conf
174 entrypoint: /opt/app/policy/bin/wait_for_port.sh
175 command: [
176 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
177 'pap', '6969',
178 'kafka', '9092',
179 'aai-sim', '6666',
180 'sdnc-sim', '6668',
181 'so-sim', '6669',
182 'vfc-sim', '6670'
183 ]
184
adheli.tavares80e382e2024-05-01 14:08:35 +0100185 policy-clamp-runtime-acm:
186 image: ${CONTAINER_LOCATION}onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
187 container_name: policy-clamp-runtime-acm
188 hostname: policy-clamp-runtime-acm
189 depends_on:
adheli.tavaresd802fd92024-08-15 12:39:19 +0100190 - apex-pdp
adheli.tavares80e382e2024-05-01 14:08:35 +0100191 - kafka
saul.gillbbf5f962024-06-25 17:42:22 +0100192 - jaeger
adheli.tavares80e382e2024-05-01 14:08:35 +0100193 - policy-clamp-ac-http-ppnt
194 - policy-clamp-ac-k8s-ppnt
195 - policy-clamp-ac-pf-ppnt
196 - policy-clamp-ac-sim-ppnt
adheli.tavares80e382e2024-05-01 14:08:35 +0100197 ports:
198 - ${ACM_PORT}:6969
saul.gillbbf5f962024-06-25 17:42:22 +0100199 environment:
200 OTEL_SERVICE_NAME: acm-r
201 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
202 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
203 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
rameshiyer27b837fdc2024-07-29 08:14:34 +0000204 SPRING_PROFILES_ACTIVE: ${CLAMP_PROFILE:-default}
saul.gillbbf5f962024-06-25 17:42:22 +0100205 # Tracing can be configured for grpc or http - default is http
206 #OTEL_EXPORTER_OTLP_PROTOCOL: grpc
207 #OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: grpc
208 #OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
adheli.tavares80e382e2024-05-01 14:08:35 +0100209 volumes:
rameshiyer27b837fdc2024-07-29 08:14:34 +0000210 - ./config/clamp/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml
adheli.tavares80e382e2024-05-01 14:08:35 +0100211 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
saul.gillbbf5f962024-06-25 17:42:22 +0100212 - ./config/clamp/acm-runtime.sh:/opt/app/policy/clamp/bin/acm-runtime.sh:rw
adheli.tavares80e382e2024-05-01 14:08:35 +0100213 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
214 entrypoint: /opt/app/policy/bin/wait_for_port.sh
215 command: [
216 '-c', './acm-runtime.sh',
adheli.tavaresd802fd92024-08-15 12:39:19 +0100217 'apex-pdp', '6969',
adheli.tavares80e382e2024-05-01 14:08:35 +0100218 'kafka', '9092',
219 'policy-clamp-ac-http-ppnt', '6969',
220 'policy-clamp-ac-k8s-ppnt', '6969',
adheli.tavaresd802fd92024-08-15 12:39:19 +0100221 'policy-clamp-ac-pf-ppnt', '6969'
adheli.tavares80e382e2024-05-01 14:08:35 +0100222 ]
rameshiyer27e9098662023-04-03 00:57:58 +0100223
adheli.tavares80e382e2024-05-01 14:08:35 +0100224 policy-clamp-ac-http-ppnt:
225 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-http-ppnt:${POLICY_CLAMP_PPNT_VERSION}
226 container_name: policy-clamp-ac-http-ppnt
227 hostname: policy-clamp-ac-http-ppnt
228 depends_on:
229 - kafka
saul.gillbbf5f962024-06-25 17:42:22 +0100230 - jaeger
adheli.tavares80e382e2024-05-01 14:08:35 +0100231 ports:
232 - "30290:6969"
saul.gillbbf5f962024-06-25 17:42:22 +0100233 environment:
234 OTEL_SERVICE_NAME: http-ppnt
235 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
236 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
237 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
rameshiyer27b837fdc2024-07-29 08:14:34 +0000238 SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
adheli.tavares80e382e2024-05-01 14:08:35 +0100239 volumes:
rameshiyer27b837fdc2024-07-29 08:14:34 +0000240 - ./config/clamp/HttpParticipantParameters.yaml:/opt/app/policy/clamp/etc/HttpParticipantParameters.yaml
saul.gillbbf5f962024-06-25 17:42:22 +0100241 - ./config/clamp/http-participant.sh:/opt/app/policy/clamp/bin/http-participant.sh:rw
adheli.tavares80e382e2024-05-01 14:08:35 +0100242 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
243 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
244 entrypoint: /opt/app/policy/bin/wait_for_port.sh
245 command: [
246 '-c', './http-participant.sh',
247 'kafka', '9092'
248 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +0100249
adheli.tavares80e382e2024-05-01 14:08:35 +0100250 policy-clamp-ac-k8s-ppnt:
251 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_PPNT_VERSION}
252 container_name: policy-clamp-ac-k8s-ppnt
253 hostname: policy-clamp-ac-k8s-ppnt
254 depends_on:
255 - kafka
saul.gillbbf5f962024-06-25 17:42:22 +0100256 - jaeger
257 environment:
258 OTEL_SERVICE_NAME: k8s-ppnt
259 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
260 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
261 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
rameshiyer27b837fdc2024-07-29 08:14:34 +0000262 SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
adheli.tavares80e382e2024-05-01 14:08:35 +0100263 ports:
264 - "30295:6969"
265 volumes:
rameshiyer27b837fdc2024-07-29 08:14:34 +0000266 - ./config/clamp/KubernetesParticipantParameters.yaml:/opt/app/policy/clamp/etc/KubernetesParticipantParameters.yaml
saul.gillbbf5f962024-06-25 17:42:22 +0100267 - ./config/clamp/kubernetes-participant.sh:/opt/app/policy/clamp/bin/kubernetes-participant.sh:rw
adheli.tavares80e382e2024-05-01 14:08:35 +0100268 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
269 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
270 entrypoint: /opt/app/policy/bin/wait_for_port.sh
271 command: [
272 '-c', './kubernetes-participant.sh',
273 'kafka', '9092'
274 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +0100275
adheli.tavares80e382e2024-05-01 14:08:35 +0100276 policy-clamp-ac-pf-ppnt:
277 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_PPNT_VERSION}
278 container_name: policy-clamp-ac-pf-ppnt
279 hostname: policy-clamp-ac-pf-ppnt
280 depends_on:
281 - kafka
282 - api
saul.gillbbf5f962024-06-25 17:42:22 +0100283 - jaeger
adheli.tavares80e382e2024-05-01 14:08:35 +0100284 ports:
285 - ${POLICY_PARTICIPANT_PORT}:6969
saul.gillbbf5f962024-06-25 17:42:22 +0100286 environment:
287 OTEL_SERVICE_NAME: policy-ppnt
288 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
289 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
290 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
rameshiyer27b837fdc2024-07-29 08:14:34 +0000291 SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
adheli.tavares80e382e2024-05-01 14:08:35 +0100292 volumes:
rameshiyer27b837fdc2024-07-29 08:14:34 +0000293 - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/etc/PolicyParticipantParameters.yaml:ro
saul.gillbbf5f962024-06-25 17:42:22 +0100294 - ./config/clamp/policy-participant.sh:/opt/app/policy/clamp/bin/policy-participant.sh:rw
adheli.tavares80e382e2024-05-01 14:08:35 +0100295 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
296 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
297 entrypoint: /opt/app/policy/bin/wait_for_port.sh
298 command: [
299 '-c', './policy-participant.sh',
300 'kafka', '9092',
301 'api', '6969'
302 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +0100303
adheli.tavares80e382e2024-05-01 14:08:35 +0100304 policy-clamp-ac-a1pms-ppnt:
305 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-a1pms-ppnt:${POLICY_CLAMP_PPNT_VERSION}
306 container_name: policy-clamp-ac-a1pms-ppnt
307 hostname: policy-clamp-ac-a1pms-ppnt
308 depends_on:
309 - kafka
saul.gillbbf5f962024-06-25 17:42:22 +0100310 - jaeger
311 environment:
312 OTEL_SERVICE_NAME: a1pms-ppnt
313 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
314 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
315 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
adheli.tavares80e382e2024-05-01 14:08:35 +0100316 ports:
317 - "30296:6969"
318 volumes:
319 - ./config/clamp/A1pmsParticipantParameters.yaml:/opt/app/policy/clamp/etc/A1pmsParticipantParameters.yaml:ro
saul.gillbbf5f962024-06-25 17:42:22 +0100320 - ./config/clamp/a1pms-participant.sh:/opt/app/policy/clamp/bin/a1pms-participant.sh:rw
adheli.tavares80e382e2024-05-01 14:08:35 +0100321 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
322 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
323 entrypoint: /opt/app/policy/bin/wait_for_port.sh
324 command: [
325 '-c', './a1pms-participant.sh',
326 'kafka', '9092'
327 ]
adheli.tavaresd802fd92024-08-15 12:39:19 +0100328
adheli.tavares80e382e2024-05-01 14:08:35 +0100329 policy-clamp-ac-kserve-ppnt:
330 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-kserve-ppnt:${POLICY_CLAMP_PPNT_VERSION}
331 container_name: policy-clamp-ac-kserve-ppnt
332 hostname: policy-clamp-ac-kserve-ppnt
333 depends_on:
334 - kafka
saul.gillbbf5f962024-06-25 17:42:22 +0100335 - jaeger
336 environment:
337 OTEL_SERVICE_NAME: kserve-ppnt
338 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
339 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
340 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
adheli.tavares80e382e2024-05-01 14:08:35 +0100341 ports:
342 - "30297:6969"
343 volumes:
344 - ./config/clamp/KserveParticipantParameters.yaml:/opt/app/policy/clamp/etc/KserveParticipantParameters.yaml:ro
saul.gillbbf5f962024-06-25 17:42:22 +0100345 - ./config/clamp/kserve-participant.sh:/opt/app/policy/clamp/bin/kserve-participant.sh:rw
adheli.tavares80e382e2024-05-01 14:08:35 +0100346 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
347 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
348 entrypoint: /opt/app/policy/bin/wait_for_port.sh
349 command: [
350 '-c', './kserve-participant.sh',
351 'kafka', '9092'
352 ]