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