2 # ===========LICENSE_START====================================================
3 # Copyright (C) 2023-2024 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
67 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
68 - ./config/sim-all/logback.xml:/opt/app/policy/simulators/etc/mounted/logback.xml:ro
76 - ${SIMULATOR_PORT}:3904
78 image: ${CONTAINER_LOCATION}onap/policy-api:${POLICY_API_VERSION}
79 container_name: policy-api
86 - ./config/api/apiParametersPostgres.yaml:/opt/app/policy/api/etc/apiParameters.yaml:ro
87 - ./config/api/logback.xml:/opt/app/policy/api/etc/logback.xml:ro
88 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
89 entrypoint: ./wait_for_port.sh
91 '-c', './policy-api.sh',
93 'policy-db-migrator', '6824'
96 image: ${CONTAINER_LOCATION}onap/policy-pap:${POLICY_PAP_VERSION}
97 container_name: policy-pap
106 - ./config/pap/papParametersPostgres.yaml:/opt/app/policy/pap/etc/papParameters.yaml:ro
107 - ./config/${PROJECT}/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
108 - ./config/pap/logback.xml:/opt/app/policy/pap/etc/logback.xml:ro
109 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
110 entrypoint: ./wait_for_port.sh
112 '-c', './policy-pap.sh',
118 image: ${CONTAINER_LOCATION}onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
119 container_name: policy-apex-pdp
125 hostname: policy-apex-pdp
128 - ${APEX_EVENTS_PORT}:23324
130 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
131 - ./config/apex-pdp/logback.xml:/opt/app/policy/apex-pdp/etc/logback.xml:ro
132 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
133 entrypoint: /opt/app/policy/bin/wait_for_port.sh
135 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
141 image: nexus3.onap.org:10001/prom/prometheus:latest
142 container_name: prometheus
145 - ${PROMETHEUS_PORT}:9090
147 - ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml
150 image: confluentinc/cp-zookeeper:latest
152 ZOOKEEPER_CLIENT_PORT: 2181
153 ZOOKEEPER_TICK_TIME: 2000
158 image: confluentinc/cp-kafka:latest
159 container_name: kafka
167 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
168 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
169 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
170 KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
171 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1