Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 1 | # Copyright 2019-2020 AT&T Intellectual Property. All rights reserved |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 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' |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 15 | services: |
| 16 | mariadb: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 17 | image: mariadb:${POLICY_MARIADB_VER} |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 18 | container_name: mariadb |
| 19 | hostname: mariadb |
| 20 | command: ['--lower-case-table-names=1', '--wait_timeout=28800'] |
| 21 | env_file: config/db/db.conf |
| 22 | volumes: |
| 23 | - ./config/db:/docker-entrypoint-initdb.d |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 24 | expose: |
| 25 | - 3306 |
Jim Hahn | 09148c8 | 2020-09-02 11:16:16 -0400 | [diff] [blame] | 26 | message-router: |
| 27 | image: dmaap/simulator |
| 28 | container_name: dmaap-simulator |
| 29 | hostname: dmaap-simulator |
| 30 | expose: |
| 31 | - 3904 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 32 | pap: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 33 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 34 | container_name: policy-pap |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 35 | depends_on: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 36 | - mariadb |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 37 | hostname: policy-pap |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 38 | expose: |
| 39 | - 6969 |
Jim Hahn | 0a594cf | 2019-04-19 12:47:01 -0400 | [diff] [blame] | 40 | api: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 41 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
Jim Hahn | 0a594cf | 2019-04-19 12:47:01 -0400 | [diff] [blame] | 42 | container_name: policy-api |
| 43 | depends_on: |
| 44 | - mariadb |
| 45 | hostname: policy-api |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 46 | expose: |
| 47 | - 6969 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 48 | start_dependencies: |
| 49 | image: dadarek/wait-for-dependencies |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 50 | environment: |
| 51 | TIMEOUT_LENGTH: 60 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 52 | container_name: policy-wait |
| 53 | depends_on: |
| 54 | - mariadb |
Jim Hahn | 09148c8 | 2020-09-02 11:16:16 -0400 | [diff] [blame] | 55 | - message-router |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 56 | hostname: policy-wait |
Jim Hahn | 09148c8 | 2020-09-02 11:16:16 -0400 | [diff] [blame] | 57 | command: |
| 58 | mariadb:3306 |
| 59 | message-router:3904 |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 60 | start_all: |
| 61 | image: dadarek/wait-for-dependencies |
| 62 | environment: |
| 63 | TIMEOUT_LENGTH: 60 |
| 64 | container_name: policy-wait-all |
| 65 | depends_on: |
| 66 | - mariadb |
| 67 | - pap |
| 68 | - api |
| 69 | hostname: policy-wait-all |
| 70 | command: |
| 71 | mariadb:3306 |
Jim Hahn | 09148c8 | 2020-09-02 11:16:16 -0400 | [diff] [blame] | 72 | message-router:3904 |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 73 | pap:6969 |
| 74 | api:6969 |