2 # ===========LICENSE_START====================================================
3 # Copyright (C) 2023 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/library/postgres:${POLICY_POSTGRES_VER}
22 container_name: postgres
24 command: [ '--idle_in_transaction_session_timeout=28800' ]
25 env_file: config/db-pg/db-pg.conf
27 - ./config/db-pg:/docker-entrypoint-initdb.d:ro
33 image: ${CONTAINER_LOCATION}onap/policy-db-migrator:${POLICY_DOCKER_VERSION}
34 container_name: policy-db-migrator
35 hostname: policy-db-migrator
40 env_file: config/db-pg/db-pg.conf
44 PGPASSWORD: policy_user
46 - ./config/db-migrator/init_pg.sh:/opt/app/policy/bin/db_migrator_policy_init_pg.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_pg.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/apiParametersPostgres.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/papParametersPostgres.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-apex-pdp:${POLICY_APEX_PDP_VERSION}
121 container_name: policy-apex-pdp
126 hostname: policy-apex-pdp
129 - ${APEX_EVENTS_PORT}:23324
131 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
132 - ./config/apex-pdp/logback.xml:/opt/app/policy/apex-pdp/etc/logback.xml:ro
133 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
134 entrypoint: /opt/app/policy/bin/wait_for_port.sh
136 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
138 'message-router', '3904',
142 image: ${CONTAINER_LOCATION}prom/prometheus:latest
143 container_name: prometheus
146 - ${PROMETHEUS_PORT}:9090
148 - ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml