Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. |
| 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' |
| 19 | networks: |
| 20 | default: |
| 21 | driver: bridge |
| 22 | services: |
| 23 | mariadb: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 24 | image: mariadb:${POLICY_MARIADB_VER} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 25 | container_name: mariadb |
| 26 | hostname: mariadb |
| 27 | command: ['--lower-case-table-names=1', '--wait_timeout=28800'] |
| 28 | env_file: config/db/db.conf |
| 29 | volumes: |
| 30 | - ./config/db:/docker-entrypoint-initdb.d |
| 31 | ports: |
| 32 | - "3306:3306" |
| 33 | message-router: |
| 34 | image: dmaap/simulator |
| 35 | container_name: dmaap-simulator |
| 36 | hostname: dmaap-simulator |
| 37 | ports: |
| 38 | - "3904:3904" |
| 39 | pap: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 40 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 41 | container_name: policy-pap |
| 42 | depends_on: |
| 43 | - mariadb |
| 44 | - message-router |
| 45 | hostname: policy-pap |
| 46 | api: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 47 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 48 | container_name: policy-api |
| 49 | depends_on: |
| 50 | - mariadb |
| 51 | hostname: policy-api |
| 52 | xacml-pdp: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 53 | 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] | 54 | container_name: policy-xacml-pdp |
| 55 | depends_on: |
| 56 | - mariadb |
| 57 | - message-router |
| 58 | - pap |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 59 | hostname: policy-xacml-pdp |
| 60 | ports: |
| 61 | - "6969:6969" |
| 62 | start_dependencies: |
| 63 | image: dadarek/wait-for-dependencies |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 64 | environment: |
| 65 | TIMEOUT_LENGTH: 60 |
Michael Mokry | b4f6962 | 2019-05-13 13:09:17 -0500 | [diff] [blame] | 66 | container_name: policy-wait |
| 67 | depends_on: |
| 68 | - mariadb |
| 69 | - message-router |
| 70 | hostname: policy-wait |
| 71 | command: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 72 | mariadb:3306 |
| 73 | message-router:3904 |
| 74 | start_all: |
| 75 | image: dadarek/wait-for-dependencies |
| 76 | environment: |
| 77 | TIMEOUT_LENGTH: 60 |
| 78 | container_name: policy-wait-all |
| 79 | depends_on: |
| 80 | - mariadb |
| 81 | - message-router |
| 82 | - api |
| 83 | - pap |
| 84 | - xacml-pdp |
| 85 | hostname: policy-wait-all |
| 86 | command: |
| 87 | mariadb:3306 |
| 88 | message-router:3904 |
| 89 | api:6969 |
| 90 | pap:6969 |
| 91 | xacml-pdp:6969 |