a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 1 | # Copyright (C) 2019 Nordix Foundation. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | version: '2' |
| 15 | networks: |
| 16 | default: |
| 17 | driver: bridge |
| 18 | services: |
| 19 | mariadb: |
| 20 | image: mariadb:10.2.14 |
| 21 | container_name: mariadb |
| 22 | hostname: mariadb |
| 23 | command: ['--lower-case-table-names=1', '--wait_timeout=28800'] |
| 24 | env_file: config/db/db.conf |
| 25 | volumes: |
| 26 | - ./config/db:/docker-entrypoint-initdb.d |
| 27 | ports: |
| 28 | - "3306:3306" |
| 29 | dmaap: |
| 30 | image: dmaap/simulator |
| 31 | container_name: dmaap-simulator |
| 32 | hostname: dmaap-simulator |
| 33 | ports: |
| 34 | - "3904:3904" |
| 35 | pap: |
| 36 | image: nexus3.onap.org:10001/onap/policy-pap:2.0.0-SNAPSHOT-latest |
| 37 | container_name: policy-pap |
| 38 | depends_on: |
| 39 | - mariadb |
| 40 | - dmaap |
| 41 | hostname: policy-pap |
| 42 | volumes: |
| 43 | - ./config/pap/:/opt/app/policy/pap/etc/ |
| 44 | api: |
| 45 | image: nexus3.onap.org:10001/onap/policy-api |
| 46 | container_name: policy-api |
| 47 | depends_on: |
| 48 | - mariadb |
| 49 | hostname: policy-api |
| 50 | apex: |
| 51 | image: nexus3.onap.org:10001/onap/policy-apex-pdp:2.1-SNAPSHOT-latest |
| 52 | container_name: policy-apex-pdp |
| 53 | depends_on: |
| 54 | - mariadb |
| 55 | - dmaap |
| 56 | - pap |
| 57 | - api |
| 58 | hostname: policy-apex-pdp |
| 59 | command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', '-p', '/opt/app/policy/apex-pdp/etc/onappf/config/topic.properties'] |
| 60 | volumes: |
| 61 | - ./config/apex-pdp/:/opt/app/policy/apex-pdp/etc/onappf/config/ |
| 62 | ports: |
| 63 | - "6969:6969" |
| 64 | - "23324:23324" |
| 65 | start_dependencies: |
| 66 | image: dadarek/wait-for-dependencies |
| 67 | container_name: policy-wait |
| 68 | depends_on: |
| 69 | - mariadb |
| 70 | - dmaap |
| 71 | hostname: policy-wait |
| 72 | command: |
| 73 | - mariadb:3306 |
| 74 | - dmaap:3904 |