Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 1 | # |
| 2 | # ===========LICENSE_START==================================================== |
| 3 | # Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. |
Ram Krishna Verma | 9fe39e8 | 2021-05-13 11:03:50 -0400 | [diff] [blame] | 4 | # Modifications Copyright (C) 2021 Bell Canada. All rights reserved. |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 5 | # ============================================================================ |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ============LICENSE_END===================================================== |
| 18 | # |
| 19 | version: '2' |
| 20 | services: |
| 21 | mariadb: |
| 22 | image: nexus3.onap.org:10001/mariadb:${POLICY_MARIADB_VER} |
| 23 | container_name: mariadb |
| 24 | hostname: mariadb |
| 25 | command: ['--lower-case-table-names=1', '--wait_timeout=28800'] |
| 26 | env_file: config/db/db.conf |
| 27 | volumes: |
| 28 | - ./config/db:/docker-entrypoint-initdb.d:ro |
| 29 | expose: |
| 30 | - 3306 |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 31 | simulator: |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 32 | image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION} |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 33 | container_name: simulator |
| 34 | hostname: simulator |
| 35 | networks: |
| 36 | default: |
| 37 | aliases: |
| 38 | - message-router |
| 39 | - aai-sim |
| 40 | - grpc-sim |
| 41 | - sdnc-sim |
| 42 | - so-sim |
| 43 | - vfc-sim |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 44 | volumes: |
| 45 | - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 46 | - ./config/ks.jks:/opt/app/policy/simulators/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 47 | - ./config/policy-truststore:/opt/app/policy/simulators/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 48 | expose: |
| 49 | - 6666 |
| 50 | - 6668 |
| 51 | - 6669 |
| 52 | - 6670 |
| 53 | - 3905 |
a.sreekumar | 9a12d02 | 2021-07-08 15:32:52 +0100 | [diff] [blame^] | 54 | - 6680 |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 55 | api: |
| 56 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
| 57 | container_name: policy-api |
| 58 | depends_on: |
| 59 | - mariadb |
| 60 | hostname: policy-api |
| 61 | expose: |
| 62 | - 6969 |
| 63 | volumes: |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 64 | - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 65 | - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 66 | - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro |
| 67 | entrypoint: ./wait_for_port.sh |
| 68 | command: [ |
| 69 | '-c', './policy-api.sh', |
| 70 | 'mariadb', '3306' |
| 71 | ] |
| 72 | pap: |
| 73 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
| 74 | container_name: policy-pap |
| 75 | depends_on: |
| 76 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 77 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 78 | - api |
| 79 | hostname: policy-pap |
| 80 | expose: |
| 81 | - 6969 |
| 82 | volumes: |
| 83 | - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 84 | - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 85 | - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 86 | - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro |
| 87 | entrypoint: ./wait_for_port.sh |
| 88 | command: [ |
| 89 | '-c', './policy-pap.sh', |
| 90 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 91 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 92 | 'api', '6969' |
| 93 | ] |
| 94 | xacml-pdp: |
| 95 | image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION} |
| 96 | container_name: policy-xacml-pdp |
| 97 | depends_on: |
| 98 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 99 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 100 | - pap |
| 101 | hostname: policy-xacml-pdp |
| 102 | expose: |
| 103 | - 6969 |
| 104 | volumes: |
| 105 | - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 106 | - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 107 | - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 108 | - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro |
| 109 | entrypoint: ./wait_for_port.sh |
| 110 | command: [ |
| 111 | '-c', './policy-pdpx.sh', |
| 112 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 113 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 114 | 'pap', '6969' |
| 115 | ] |
| 116 | drools: |
| 117 | image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION} |
| 118 | container_name: drools |
| 119 | depends_on: |
| 120 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 121 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 122 | - pap |
| 123 | hostname: drools |
| 124 | expose: |
| 125 | - 6969 |
| 126 | - 9696 |
| 127 | volumes: |
| 128 | - ./config/drools/custom:/tmp/policy-install/config:ro |
| 129 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 130 | env_file: |
| 131 | - config/drools/env/base.conf |
| 132 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 133 | command: [ |
| 134 | '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot', |
| 135 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 136 | 'message-router', '3905' |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 137 | ] |
| 138 | drools-apps: |
| 139 | image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION} |
| 140 | container_name: drools-apps |
| 141 | depends_on: |
| 142 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 143 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 144 | - pap |
| 145 | - xacml-pdp |
| 146 | hostname: drools-apps |
| 147 | expose: |
| 148 | - 6969 |
| 149 | - 9696 |
| 150 | volumes: |
| 151 | - ./config/drools-apps/custom:/tmp/policy-install/config:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 152 | - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 153 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 154 | env_file: |
| 155 | - config/drools-apps/env/base.conf |
| 156 | - config/drools-apps/env/feature-healthcheck.conf |
| 157 | - config/drools-apps/env/feature-pooling-dmaap.conf |
| 158 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 159 | command: [ |
| 160 | '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot', |
| 161 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 162 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 163 | 'pap', '6969', |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 164 | 'aai-sim', '6666', |
| 165 | 'sdnc-sim', '6668', |
| 166 | 'so-sim', '6669', |
| 167 | 'vfc-sim', '6670' |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 168 | ] |
| 169 | apex-pdp: |
| 170 | image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION} |
| 171 | container_name: policy-apex-pdp |
| 172 | depends_on: |
| 173 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame] | 174 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 175 | - pap |
| 176 | hostname: policy-apex-pdp |
| 177 | expose: |
| 178 | - 6969 |
| 179 | - 23324 |
| 180 | volumes: |
| 181 | - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 182 | - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 183 | - ./config/policy-truststore:/opt/app/policy/apex-pdp/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 184 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 185 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 186 | command: [ |
| 187 | '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', |
| 188 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 189 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 190 | 'pap', '6969' |
| 191 | ] |
| 192 | distribution: |
| 193 | image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION} |
| 194 | container_name: policy-distribution |
| 195 | depends_on: |
| 196 | - mariadb |
| 197 | - api |
| 198 | - pap |
| 199 | - apex-pdp |
| 200 | hostname: policy-distribution |
| 201 | volumes: |
| 202 | - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 203 | - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 204 | - ./config/policy-truststore:/opt/app/policy/distribution/etc/ssl/policy-truststore:ro |
Ram Krishna Verma | 9fe39e8 | 2021-05-13 11:03:50 -0400 | [diff] [blame] | 205 | - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 206 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 207 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 208 | command: [ |
| 209 | '-c', './policy-dist.sh', |
| 210 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 211 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 212 | 'pap', '6969', |
| 213 | 'apex-pdp', '6969' |
| 214 | ] |
Sirisha_Manchikanti | 4d0a1d7 | 2021-06-08 09:28:21 +0100 | [diff] [blame] | 215 | policy-controlloop-runtime: |
| 216 | image: onap/policy-controlloop-runtime:latest |
| 217 | container_name: policy-controlloop-runtime |
| 218 | depends_on: |
| 219 | - mariadb |
| 220 | - simulator |
| 221 | - policy-participant |
| 222 | - dcae-participant |
| 223 | hostname: policy-controlloop-runtime |
| 224 | expose: |
| 225 | - 6970 |
| 226 | volumes: |
| 227 | - ./config/clamp/ClRuntimeParameters.json:/opt/app/policy/clamp/etc/ClRuntimeParameters.json:ro |
| 228 | - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro |
| 229 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 230 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 231 | command: [ |
| 232 | '-c', './controlloop-runtime.sh', |
| 233 | 'message-router', '3905' |
| 234 | ] |
| 235 | dcae-participant: |
| 236 | image: onap/dcae-participant:latest |
| 237 | container_name: dcae-participant |
| 238 | depends_on: |
| 239 | - simulator |
| 240 | hostname: dcae-participant |
| 241 | expose: |
| 242 | - 6971 |
| 243 | volumes: |
| 244 | - ./config/clamp/DcaeParticipantParameters.json:/opt/app/policy/clamp/etc/DcaeParticipantParameters.json:ro |
| 245 | - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro |
| 246 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 247 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 248 | command: [ |
| 249 | '-c', './dcae-participant.sh', |
| 250 | 'message-router', '3905' |
| 251 | ] |
| 252 | policy-participant: |
| 253 | image: onap/policy-participant:latest |
| 254 | container_name: policy-participant |
| 255 | depends_on: |
| 256 | - simulator |
| 257 | - api |
| 258 | hostname: policy-participant |
| 259 | expose: |
| 260 | - 6972 |
| 261 | volumes: |
| 262 | - ./config/clamp/PolicyParticipantParameters.json:/opt/app/policy/clamp/etc/PolicyParticipantParameters.json:ro |
| 263 | - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro |
| 264 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 265 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 266 | command: [ |
| 267 | '-c', './policy-participant.sh', |
| 268 | 'message-router', '3905' |
| 269 | ] |