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: |
| 24 | image: mariadb:10.2.14 |
| 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: |
| 40 | image: nexus3.onap.org:10001/onap/policy-pap:2.0.0-SNAPSHOT-latest |
| 41 | container_name: policy-pap |
| 42 | depends_on: |
| 43 | - mariadb |
| 44 | - message-router |
| 45 | hostname: policy-pap |
| 46 | api: |
| 47 | image: nexus3.onap.org:10001/onap/policy-api |
| 48 | container_name: policy-api |
| 49 | depends_on: |
| 50 | - mariadb |
| 51 | hostname: policy-api |
| 52 | xacml-pdp: |
| 53 | image: nexus3.onap.org:10001/onap/policy-xacml-pdp:2.0.0-SNAPSHOT-latest |
| 54 | container_name: policy-xacml-pdp |
| 55 | depends_on: |
| 56 | - mariadb |
| 57 | - message-router |
| 58 | - pap |
| 59 | - api |
| 60 | hostname: policy-xacml-pdp |
| 61 | ports: |
| 62 | - "6969:6969" |
| 63 | start_dependencies: |
| 64 | image: dadarek/wait-for-dependencies |
| 65 | container_name: policy-wait |
| 66 | depends_on: |
| 67 | - mariadb |
| 68 | - message-router |
| 69 | hostname: policy-wait |
| 70 | command: |
| 71 | - mariadb:3306 |
| 72 | - message-router:3904 |