Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 2 | # Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | version: '2' |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 19 | services: |
| 20 | mariadb: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 21 | image: mariadb:${POLICY_MARIADB_VER} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 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 |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 28 | expose: |
| 29 | - 3306 |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 30 | message-router: |
| 31 | image: dmaap/simulator |
| 32 | container_name: dmaap-simulator |
| 33 | hostname: dmaap-simulator |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 34 | expose: |
| 35 | - 3904 |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 36 | pap: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 37 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 38 | container_name: policy-pap |
| 39 | depends_on: |
| 40 | - mariadb |
| 41 | - message-router |
| 42 | hostname: policy-pap |
| 43 | api: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 44 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 45 | container_name: policy-api |
| 46 | depends_on: |
| 47 | - mariadb |
| 48 | hostname: policy-api |
| 49 | xacml-pdp: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 50 | image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 51 | container_name: policy-xacml-pdp |
| 52 | depends_on: |
| 53 | - mariadb |
| 54 | - message-router |
| 55 | - pap |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 56 | hostname: policy-xacml-pdp |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 57 | expose: |
| 58 | - 6969 |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 59 | start_dependencies: |
| 60 | image: dadarek/wait-for-dependencies |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 61 | environment: |
| 62 | TIMEOUT_LENGTH: 60 |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 63 | container_name: policy-wait |
| 64 | depends_on: |
| 65 | - mariadb |
| 66 | - message-router |
| 67 | hostname: policy-wait |
| 68 | command: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 69 | mariadb:3306 |
| 70 | message-router:3904 |
| 71 | start_all: |
| 72 | image: dadarek/wait-for-dependencies |
| 73 | environment: |
| 74 | TIMEOUT_LENGTH: 60 |
| 75 | container_name: policy-wait-all |
| 76 | depends_on: |
| 77 | - mariadb |
| 78 | - message-router |
| 79 | - api |
| 80 | - pap |
| 81 | - xacml-pdp |
| 82 | hostname: policy-wait-all |
| 83 | command: |
| 84 | mariadb:3306 |
| 85 | message-router:3904 |
| 86 | api:6969 |
| 87 | pap:6969 |
| 88 | xacml-pdp:6969 |