2 # ===========LICENSE_START====================================================
3 # Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
4 # Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
5 # Modification Copyright 2021-2023 Nordix Foundation.
6 # ============================================================================
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
11 # http://www.apache.org/licenses/LICENSE-2.0
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=====================================================
23 image: ${CONTAINER_LOCATION}mariadb:${POLICY_MARIADB_VER}
24 container_name: mariadb
26 command: ['--lower-case-table-names=1', '--wait_timeout=28800', '--default-authentication-plugin=mysql_native_password']
27 env_file: ./config/db/db.conf
29 - ./config/db:/docker-entrypoint-initdb.d:ro
30 - ./config/clamp/policy-clamp-create-tables.sql:/tmp/policy-clamp-create-tables.sql
34 image: ${CONTAINER_LOCATION}onap/policy-db-migrator:${POLICY_DOCKER_VERSION}
35 container_name: policy-db-migrator
36 hostname: policy-db-migrator
41 env_file: ./config/db/db.conf
46 - ./config/db-migrator/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
51 '/opt/app/policy/bin/db_migrator_policy_init.sh',
55 image: ${CONTAINER_LOCATION}onap/policy-models-simulator:${POLICY_MODELS_VERSION}
56 container_name: simulator
68 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
69 - ./config/sim-all/logback.xml:/opt/app/policy/simulators/etc/mounted/logback.xml:ro
80 image: ${CONTAINER_LOCATION}onap/policy-api:${POLICY_API_VERSION}
81 container_name: policy-api
88 - ./config/api/apiParameters.yaml:/opt/app/policy/api/etc/apiParameters.yaml:ro
89 - ./config/api/logback.xml:/opt/app/policy/api/etc/logback.xml:ro
90 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
91 entrypoint: ./wait_for_port.sh
93 '-c', './policy-api.sh',
95 'policy-db-migrator', '6824'
98 image: ${CONTAINER_LOCATION}onap/policy-pap:${POLICY_PAP_VERSION}
99 container_name: policy-pap
108 - ./config/pap/papParameters.yaml:/opt/app/policy/pap/etc/papParameters.yaml:ro
109 - ./config/${PROJECT}/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
110 - ./config/pap/logback.xml:/opt/app/policy/pap/etc/logback.xml:ro
111 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
112 entrypoint: ./wait_for_port.sh
114 '-c', './policy-pap.sh',
116 'message-router', '3904',
120 image: ${CONTAINER_LOCATION}onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
121 container_name: policy-xacml-pdp
126 hostname: policy-xacml-pdp
131 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
132 - ./config/xacml-pdp/logback.xml:/opt/app/policy/pdpx/etc/logback.xml:ro
133 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
134 entrypoint: ./wait_for_port.sh
136 '-c', './policy-pdpx.sh',
138 'message-router', '3904',
142 image: ${CONTAINER_LOCATION}onap/policy-drools:${POLICY_DROOLS_PDP_VERSION}
143 container_name: drools
150 - ${DROOLS_PORT}:6969
151 - ${DROOLS_TELEMETRY_PORT}:9696
153 - ./config/drools-pdp/custom:/tmp/policy-install/config:ro
154 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
156 - ./config/drools-pdp/env/base.conf
157 entrypoint: /opt/app/policy/bin/wait_for_port.sh
159 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
161 'message-router', '3904'
164 image: ${CONTAINER_LOCATION}onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
165 container_name: drools-apps
171 hostname: drools-apps
173 - ${DROOLS_APPS_PORT}:6969
174 - ${DROOLS_APPS_TELEMETRY_PORT}:9696
176 - ./config/drools-applications/custom:/tmp/policy-install/config:ro
177 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
179 - ./config/drools-applications/env/base.conf
180 - ./config/drools-applications/env/feature-healthcheck.conf
181 - ./config/drools-applications/env/feature-pooling-dmaap.conf
182 entrypoint: /opt/app/policy/bin/wait_for_port.sh
184 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
186 'message-router', '3904',
194 image: ${CONTAINER_LOCATION}onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
195 container_name: policy-apex-pdp
200 hostname: policy-apex-pdp
203 - ${APEX_EVENTS_PORT}:23324
205 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
206 - ./config/apex-pdp/logback.xml:/opt/app/policy/apex-pdp/etc/logback.xml:ro
207 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
208 entrypoint: /opt/app/policy/bin/wait_for_port.sh
210 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
212 'message-router', '3904',
216 image: ${CONTAINER_LOCATION}onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
217 container_name: policy-distribution
223 hostname: policy-distribution
227 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
228 - /tmp/distribution/:/opt/app/policy/distribution/etc/temp/:ro
229 - ./config/distribution/logback.xml:/opt/app/policy/distribution/etc/logback.xml:ro
230 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
231 entrypoint: /opt/app/policy/bin/wait_for_port.sh
233 '-c', './policy-dist.sh',
235 'message-router', '3904',
239 policy-clamp-runtime-acm:
240 image: ${CONTAINER_LOCATION}onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
241 container_name: policy-clamp-runtime-acm
245 - policy-clamp-ac-http-ppnt
246 - policy-clamp-ac-k8s-ppnt
247 - policy-clamp-ac-pf-ppnt
249 hostname: policy-clamp-runtime-acm
253 - ./config/clamp/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml
254 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
255 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
256 entrypoint: /opt/app/policy/bin/wait_for_port.sh
258 '-c', './acm-runtime.sh',
260 'message-router', '3904',
261 'policy-clamp-ac-http-ppnt', '6969',
262 'policy-clamp-ac-k8s-ppnt', '6969',
263 'policy-clamp-ac-pf-ppnt', '6969',
267 policy-clamp-ac-http-ppnt:
268 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-http-ppnt:${POLICY_CLAMP_VERSION}
269 container_name: policy-clamp-ac-http-ppnt
272 hostname: policy-clamp-ac-http-ppnt
276 - ./config/clamp/HttpParticipantParameters.yaml:/opt/app/policy/clamp/etc/HttpParticipantParameters.yaml
277 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
278 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
279 entrypoint: /opt/app/policy/bin/wait_for_port.sh
281 '-c', './http-participant.sh',
282 'message-router', '3904'
284 policy-clamp-ac-k8s-ppnt:
285 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_VERSION}
286 container_name: policy-clamp-ac-k8s-ppnt
289 hostname: policy-clamp-ac-k8s-ppnt
293 - ./config/clamp/KubernetesParticipantParameters.yaml:/opt/app/policy/clamp/etc/KubernetesParticipantParameters.yaml
294 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
295 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
296 entrypoint: /opt/app/policy/bin/wait_for_port.sh
298 '-c', './kubernetes-participant.sh',
299 'message-router', '3904'
301 policy-clamp-ac-pf-ppnt:
302 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_VERSION}
303 container_name: policy-clamp-ac-pf-ppnt
307 hostname: policy-clamp-ac-pf-ppnt
309 - ${POLICY_PARTICIPANT_PORT}:6969
311 - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/etc/PolicyParticipantParameters.yaml:ro
312 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
313 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
314 entrypoint: /opt/app/policy/bin/wait_for_port.sh
316 '-c', './policy-participant.sh',
317 'message-router', '3904',
320 policy-clamp-ac-a1pms-ppnt:
321 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-a1pms-ppnt:${POLICY_CLAMP_VERSION}
322 container_name: policy-clamp-ac-a1pms-ppnt
325 hostname: policy-clamp-ac-a1pms-ppnt
329 - ./config/clamp/A1pmsParticipantParameters.yaml:/opt/app/policy/clamp/etc/A1pmsParticipantParameters.yaml:ro
330 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
331 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
332 entrypoint: /opt/app/policy/bin/wait_for_port.sh
334 '-c', './a1pms-participant.sh',
335 'message-router', '3904'
337 policy-clamp-ac-kserve-ppnt:
338 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-kserve-ppnt:${POLICY_CLAMP_VERSION}
339 container_name: policy-clamp-ac-kserve-ppnt
342 hostname: policy-clamp-ac-kserve-ppnt
346 - ./config/clamp/KserveParticipantParameters.yaml:/opt/app/policy/clamp/etc/KserveParticipantParameters.yaml:ro
347 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
348 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
349 entrypoint: /opt/app/policy/bin/wait_for_port.sh
351 '-c', './kserve-participant.sh',
352 'message-router', '3904'
355 image: ${CONTAINER_LOCATION}prom/prometheus:latest
356 container_name: prometheus
359 - ${PROMETHEUS_PORT}:9090
361 - ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml
363 image: ${CONTAINER_LOCATION}grafana/grafana:latest
364 container_name: grafana
369 - ${GRAFANA_PORT}:3000
371 - ./metrics/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
372 - ./metrics/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
373 - ./metrics/dashboards:/var/lib/grafana/dashboards