2 # ===========LICENSE_START====================================================
3 # Copyright (C) 2022 Nordix Foundation.
4 # ============================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=====================================================
21 image: nexus3.onap.org:10001/mariadb:${POLICY_MARIADB_VER}
22 container_name: mariadb
24 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
25 env_file: config/db/db.conf
27 - ./config/db:/docker-entrypoint-initdb.d:ro
28 - ./config/clamp/policy-clamp-create-tables.sql:/tmp/policy-clamp-create-tables.sql
32 image: nexus3.onap.org:10001/onap/policy-db-migrator:${POLICY_DOCKER_VERSION}
33 container_name: policy-db-migrator
34 hostname: policy-db-migrator
39 env_file: config/db/db.conf
44 - ./db_migrator_policy_init.sh:/opt/app/policy/bin/db_migrator_policy_init.sh:ro
45 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
46 entrypoint: /opt/app/policy/bin/wait_for_port.sh
49 '/opt/app/policy/bin/db_migrator_policy_init.sh',
53 image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
54 container_name: simulator
66 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
75 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
76 container_name: policy-api
83 - ./config/api/apiParameters.yaml:/opt/app/policy/api/etc/apiParameters.yaml:ro
84 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
85 entrypoint: ./wait_for_port.sh
87 '-c', './policy-api.sh',
89 'policy-db-migrator', '6824'
92 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
93 container_name: policy-pap
102 - ./config/pap/papParameters.yaml:/opt/app/policy/pap/etc/papParameters.yaml:ro
103 - ./config/pap/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
104 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
105 entrypoint: ./wait_for_port.sh
107 '-c', './policy-pap.sh',
109 'message-router', '3904',
113 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
114 container_name: policy-xacml-pdp
119 hostname: policy-xacml-pdp
123 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
124 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
125 entrypoint: ./wait_for_port.sh
127 '-c', './policy-pdpx.sh',
129 'message-router', '3904',
133 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_PDP_VERSION}
134 container_name: drools
144 - ./config/drools/custom:/tmp/policy-install/config:ro
145 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
147 - config/drools/env/base.conf
148 entrypoint: /opt/app/policy/bin/wait_for_port.sh
150 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
152 'message-router', '3904'
155 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
156 container_name: drools-apps
162 hostname: drools-apps
167 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
168 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
170 - config/drools-apps/env/base.conf
171 - config/drools-apps/env/feature-healthcheck.conf
172 - config/drools-apps/env/feature-pooling-dmaap.conf
173 entrypoint: /opt/app/policy/bin/wait_for_port.sh
175 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
177 'message-router', '3904',
185 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
186 container_name: policy-apex-pdp
191 hostname: policy-apex-pdp
196 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
197 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
198 entrypoint: /opt/app/policy/bin/wait_for_port.sh
200 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
202 'message-router', '3904',
206 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
207 container_name: policy-distribution
213 hostname: policy-distribution
215 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
216 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
217 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
218 entrypoint: /opt/app/policy/bin/wait_for_port.sh
220 '-c', './policy-dist.sh',
222 'message-router', '3904',
226 policy-clamp-runtime-acm:
227 image: nexus3.onap.org:10001/onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
228 container_name: policy-clamp-runtime-acm
232 hostname: policy-clamp-runtime-acm
236 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
237 - ./config/clamp/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml:ro
238 entrypoint: /opt/app/policy/bin/wait_for_port.sh
240 '-c', './acm-runtime.sh',
241 'message-router', '3904'
244 image: prom/prometheus:v2.32.1
245 container_name: prometheus
250 - ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml
252 image: grafana/grafana-oss:8.3.4
253 container_name: grafana
260 - ./metrics/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
261 - ./metrics/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
262 - ./metrics/dashboards:/var/lib/grafana/dashboards
264 image: prom/node-exporter:latest
265 container_name: node-exporter
266 restart: unless-stopped
268 - /proc:/host/proc:ro
272 - '--path.procfs=/host/proc'
273 - '--path.rootfs=/rootfs'
274 - '--path.sysfs=/host/sys'
275 - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'