adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 1 | # |
| 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 |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 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===================================================== |
| 17 | # |
| 18 | version: '2' |
| 19 | services: |
| 20 | mariadb: |
| 21 | image: nexus3.onap.org:10001/mariadb:${POLICY_MARIADB_VER} |
| 22 | container_name: mariadb |
| 23 | hostname: mariadb |
| 24 | command: ['--lower-case-table-names=1', '--wait_timeout=28800'] |
| 25 | env_file: config/db/db.conf |
| 26 | volumes: |
| 27 | - ./config/db:/docker-entrypoint-initdb.d:ro |
saul.gill | 2642450 | 2022-03-15 11:56:01 +0000 | [diff] [blame] | 28 | - ./config/clamp/policy-clamp-create-tables.sql:/tmp/policy-clamp-create-tables.sql |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 29 | expose: |
| 30 | - 3306 |
| 31 | policy-db-migrator: |
| 32 | image: nexus3.onap.org:10001/onap/policy-db-migrator:${POLICY_DOCKER_VERSION} |
| 33 | container_name: policy-db-migrator |
| 34 | hostname: policy-db-migrator |
| 35 | depends_on: |
| 36 | - mariadb |
| 37 | expose: |
| 38 | - 6824 |
| 39 | env_file: config/db/db.conf |
| 40 | environment: |
| 41 | SQL_DB: policyadmin |
| 42 | SQL_HOST: mariadb |
| 43 | volumes: |
| 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 |
| 47 | command: [ |
| 48 | '-c', |
| 49 | '/opt/app/policy/bin/db_migrator_policy_init.sh', |
| 50 | 'mariadb', '3306' |
| 51 | ] |
| 52 | simulator: |
| 53 | image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION} |
| 54 | container_name: simulator |
| 55 | hostname: simulator |
| 56 | networks: |
| 57 | default: |
| 58 | aliases: |
| 59 | - message-router |
| 60 | - aai-sim |
| 61 | - grpc-sim |
| 62 | - sdnc-sim |
| 63 | - so-sim |
| 64 | - vfc-sim |
| 65 | volumes: |
| 66 | - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro |
| 67 | expose: |
| 68 | - 6666 |
| 69 | - 6668 |
| 70 | - 6669 |
| 71 | - 6670 |
| 72 | - 3904 |
| 73 | - 6680 |
| 74 | api: |
| 75 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
| 76 | container_name: policy-api |
| 77 | depends_on: |
| 78 | - policy-db-migrator |
| 79 | hostname: policy-api |
| 80 | expose: |
| 81 | - 6969 |
| 82 | volumes: |
| 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 |
| 86 | command: [ |
| 87 | '-c', './policy-api.sh', |
| 88 | 'mariadb', '3306', |
| 89 | 'policy-db-migrator', '6824' |
| 90 | ] |
| 91 | pap: |
| 92 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
| 93 | container_name: policy-pap |
| 94 | depends_on: |
| 95 | - mariadb |
| 96 | - simulator |
| 97 | - api |
| 98 | hostname: policy-pap |
| 99 | expose: |
| 100 | - 6969 |
| 101 | volumes: |
| 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 |
| 106 | command: [ |
| 107 | '-c', './policy-pap.sh', |
| 108 | 'mariadb', '3306', |
| 109 | 'message-router', '3904', |
| 110 | 'api', '6969' |
| 111 | ] |
| 112 | xacml-pdp: |
| 113 | image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION} |
| 114 | container_name: policy-xacml-pdp |
| 115 | depends_on: |
| 116 | - mariadb |
| 117 | - simulator |
| 118 | - pap |
| 119 | hostname: policy-xacml-pdp |
| 120 | expose: |
| 121 | - 6969 |
| 122 | volumes: |
| 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 |
| 126 | command: [ |
| 127 | '-c', './policy-pdpx.sh', |
| 128 | 'mariadb', '3306', |
| 129 | 'message-router', '3904', |
| 130 | 'pap', '6969' |
| 131 | ] |
| 132 | drools: |
| 133 | image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION} |
| 134 | container_name: drools |
| 135 | depends_on: |
| 136 | - mariadb |
| 137 | - simulator |
| 138 | - pap |
| 139 | hostname: drools |
| 140 | expose: |
| 141 | - 6969 |
| 142 | - 9696 |
| 143 | volumes: |
| 144 | - ./config/drools/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/env/base.conf |
| 148 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 149 | command: [ |
| 150 | '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot', |
| 151 | 'mariadb', '3306', |
| 152 | 'message-router', '3904' |
| 153 | ] |
| 154 | drools-apps: |
| 155 | image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION} |
| 156 | container_name: drools-apps |
| 157 | depends_on: |
| 158 | - mariadb |
| 159 | - simulator |
| 160 | - pap |
| 161 | - xacml-pdp |
| 162 | hostname: drools-apps |
| 163 | expose: |
| 164 | - 6969 |
| 165 | - 9696 |
| 166 | volumes: |
| 167 | - ./config/drools-apps/custom:/tmp/policy-install/config:ro |
| 168 | - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro |
| 169 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 170 | env_file: |
| 171 | - config/drools-apps/env/base.conf |
| 172 | - config/drools-apps/env/feature-healthcheck.conf |
| 173 | - config/drools-apps/env/feature-pooling-dmaap.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 | 'mariadb', '3306', |
| 178 | 'message-router', '3904', |
| 179 | 'pap', '6969', |
| 180 | 'aai-sim', '6666', |
| 181 | 'sdnc-sim', '6668', |
| 182 | 'so-sim', '6669', |
| 183 | 'vfc-sim', '6670' |
| 184 | ] |
| 185 | apex-pdp: |
| 186 | image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION} |
| 187 | container_name: policy-apex-pdp |
| 188 | depends_on: |
| 189 | - mariadb |
| 190 | - simulator |
| 191 | - pap |
| 192 | hostname: policy-apex-pdp |
| 193 | expose: |
| 194 | - 6969 |
| 195 | - 23324 |
| 196 | volumes: |
| 197 | - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro |
| 198 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 199 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 200 | command: [ |
| 201 | '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', |
| 202 | 'mariadb', '3306', |
| 203 | 'message-router', '3904', |
| 204 | 'pap', '6969' |
| 205 | ] |
| 206 | distribution: |
| 207 | image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION} |
| 208 | container_name: policy-distribution |
| 209 | depends_on: |
| 210 | - mariadb |
| 211 | - api |
| 212 | - pap |
| 213 | - apex-pdp |
| 214 | hostname: policy-distribution |
| 215 | volumes: |
| 216 | - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro |
| 217 | - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro |
| 218 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 219 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 220 | command: [ |
| 221 | '-c', './policy-dist.sh', |
| 222 | 'mariadb', '3306', |
| 223 | 'message-router', '3904', |
| 224 | 'pap', '6969', |
| 225 | 'apex-pdp', '6969' |
| 226 | ] |
| 227 | prometheus: |
| 228 | image: prom/prometheus:v2.32.1 |
| 229 | container_name: prometheus |
| 230 | hostname: prometheus |
| 231 | expose: |
| 232 | - 9090 |
| 233 | volumes: |
| 234 | - ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml |
| 235 | grafana: |
| 236 | image: grafana/grafana-oss:8.3.4 |
| 237 | container_name: grafana |
| 238 | depends_on: |
| 239 | - prometheus |
| 240 | hostname: grafana |
| 241 | expose: |
| 242 | - 3000 |
adheli.tavares | fce51e8 | 2022-02-24 09:54:30 +0000 | [diff] [blame] | 243 | volumes: |
| 244 | - ./metrics/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml |
| 245 | - ./metrics/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml |
| 246 | - ./metrics/dashboards:/var/lib/grafana/dashboards |