a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 1 | # Copyright (C) 2019 Nordix Foundation. |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 2 | # Modifications Copyright (C) 2019 AT&T Intellectual Property. |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [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 | version: '2' |
| 16 | networks: |
| 17 | default: |
| 18 | driver: bridge |
| 19 | services: |
| 20 | mariadb: |
| 21 | image: mariadb:10.2.14 |
| 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 |
| 28 | ports: |
| 29 | - "3306:3306" |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 30 | message-router: |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 31 | image: dmaap/simulator |
| 32 | container_name: dmaap-simulator |
| 33 | hostname: dmaap-simulator |
| 34 | ports: |
| 35 | - "3904:3904" |
| 36 | pap: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 37 | image: nexus3.onap.org:10001/onap/policy-pap |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 38 | container_name: policy-pap |
| 39 | depends_on: |
| 40 | - mariadb |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 41 | - message-router |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 42 | hostname: policy-pap |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 43 | |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 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: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 51 | image: nexus3.onap.org:10001/onap/policy-apex-pdp |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 52 | container_name: policy-apex-pdp |
| 53 | depends_on: |
| 54 | - mariadb |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 55 | - message-router |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 56 | - pap |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 57 | hostname: policy-apex-pdp |
| 58 | 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'] |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 59 | |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 60 | ports: |
| 61 | - "6969:6969" |
| 62 | - "23324:23324" |
| 63 | start_dependencies: |
| 64 | image: dadarek/wait-for-dependencies |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 65 | environment: |
| 66 | TIMEOUT_LENGTH: 60 |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 67 | container_name: policy-wait |
| 68 | depends_on: |
| 69 | - mariadb |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 70 | - message-router |
a.sreekumar | 7d80c38 | 2019-05-07 13:36:39 +0000 | [diff] [blame] | 71 | hostname: policy-wait |
| 72 | command: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 73 | mariadb:3306 |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 74 | message-router:3904 |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 75 | start_all: |
| 76 | image: dadarek/wait-for-dependencies |
| 77 | environment: |
| 78 | TIMEOUT_LENGTH: 60 |
| 79 | container_name: policy-wait-all |
| 80 | depends_on: |
| 81 | - mariadb |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 82 | - message-router |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 83 | - api |
| 84 | - pap |
| 85 | - apex |
| 86 | hostname: policy-wait-all |
| 87 | command: |
| 88 | mariadb:3306 |
a.sreekumar | a11989f | 2019-06-17 10:16:43 +0000 | [diff] [blame] | 89 | message-router:3904 |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 90 | api:6969 |
| 91 | pap:6969 |
| 92 | apex:6969 |