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 |
| 54 | api: |
| 55 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
| 56 | container_name: policy-api |
| 57 | depends_on: |
| 58 | - mariadb |
| 59 | hostname: policy-api |
| 60 | expose: |
| 61 | - 6969 |
| 62 | volumes: |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 63 | - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 64 | - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 65 | - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro |
| 66 | entrypoint: ./wait_for_port.sh |
| 67 | command: [ |
| 68 | '-c', './policy-api.sh', |
| 69 | 'mariadb', '3306' |
| 70 | ] |
| 71 | pap: |
| 72 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
| 73 | container_name: policy-pap |
| 74 | depends_on: |
| 75 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame^] | 76 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 77 | - api |
| 78 | hostname: policy-pap |
| 79 | expose: |
| 80 | - 6969 |
| 81 | volumes: |
| 82 | - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 83 | - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 84 | - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 85 | - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro |
| 86 | entrypoint: ./wait_for_port.sh |
| 87 | command: [ |
| 88 | '-c', './policy-pap.sh', |
| 89 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 90 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 91 | 'api', '6969' |
| 92 | ] |
| 93 | xacml-pdp: |
| 94 | image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION} |
| 95 | container_name: policy-xacml-pdp |
| 96 | depends_on: |
| 97 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame^] | 98 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 99 | - pap |
| 100 | hostname: policy-xacml-pdp |
| 101 | expose: |
| 102 | - 6969 |
| 103 | volumes: |
| 104 | - ./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] | 105 | - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 106 | - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 107 | - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro |
| 108 | entrypoint: ./wait_for_port.sh |
| 109 | command: [ |
| 110 | '-c', './policy-pdpx.sh', |
| 111 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 112 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 113 | 'pap', '6969' |
| 114 | ] |
| 115 | drools: |
| 116 | image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION} |
| 117 | container_name: drools |
| 118 | depends_on: |
| 119 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame^] | 120 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 121 | - pap |
| 122 | hostname: drools |
| 123 | expose: |
| 124 | - 6969 |
| 125 | - 9696 |
| 126 | volumes: |
| 127 | - ./config/drools/custom:/tmp/policy-install/config:ro |
| 128 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 129 | env_file: |
| 130 | - config/drools/env/base.conf |
| 131 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 132 | command: [ |
| 133 | '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot', |
| 134 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 135 | 'message-router', '3905' |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 136 | ] |
| 137 | drools-apps: |
| 138 | image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION} |
| 139 | container_name: drools-apps |
| 140 | depends_on: |
| 141 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame^] | 142 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 143 | - pap |
| 144 | - xacml-pdp |
| 145 | hostname: drools-apps |
| 146 | expose: |
| 147 | - 6969 |
| 148 | - 9696 |
| 149 | volumes: |
| 150 | - ./config/drools-apps/custom:/tmp/policy-install/config:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 151 | - ./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] | 152 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 153 | env_file: |
| 154 | - config/drools-apps/env/base.conf |
| 155 | - config/drools-apps/env/feature-healthcheck.conf |
| 156 | - config/drools-apps/env/feature-pooling-dmaap.conf |
| 157 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 158 | command: [ |
| 159 | '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot', |
| 160 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 161 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 162 | 'pap', '6969', |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame^] | 163 | 'aai-sim', '6666', |
| 164 | 'sdnc-sim', '6668', |
| 165 | 'so-sim', '6669', |
| 166 | 'vfc-sim', '6670' |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 167 | ] |
| 168 | apex-pdp: |
| 169 | image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION} |
| 170 | container_name: policy-apex-pdp |
| 171 | depends_on: |
| 172 | - mariadb |
Jim Hahn | 3b56db7 | 2021-06-14 10:04:00 -0400 | [diff] [blame^] | 173 | - simulator |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 174 | - pap |
| 175 | hostname: policy-apex-pdp |
| 176 | expose: |
| 177 | - 6969 |
| 178 | - 23324 |
| 179 | volumes: |
| 180 | - ./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] | 181 | - ./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] | 182 | - ./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] | 183 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 184 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 185 | command: [ |
| 186 | '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', |
| 187 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 188 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 189 | 'pap', '6969' |
| 190 | ] |
| 191 | distribution: |
| 192 | image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION} |
| 193 | container_name: policy-distribution |
| 194 | depends_on: |
| 195 | - mariadb |
| 196 | - api |
| 197 | - pap |
| 198 | - apex-pdp |
| 199 | hostname: policy-distribution |
| 200 | volumes: |
| 201 | - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro |
Jim Hahn | 39b7b98 | 2021-03-16 14:52:34 -0400 | [diff] [blame] | 202 | - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 203 | - ./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] | 204 | - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 205 | - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro |
| 206 | entrypoint: /opt/app/policy/bin/wait_for_port.sh |
| 207 | command: [ |
| 208 | '-c', './policy-dist.sh', |
| 209 | 'mariadb', '3306', |
Jim Hahn | d6cc02e | 2021-06-11 13:23:20 -0400 | [diff] [blame] | 210 | 'message-router', '3905', |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 211 | 'pap', '6969', |
| 212 | 'apex-pdp', '6969' |
| 213 | ] |