Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 1 | # Copyright 2019 AT&T Intellectual Property. All rights reserved |
| 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: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 20 | image: mariadb:${POLICY_MARIADB_VER} |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 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 | pap: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 30 | image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 31 | container_name: policy-pap |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 32 | depends_on: |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 33 | - mariadb |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 34 | hostname: policy-pap |
| 35 | ports: |
| 36 | - "6969:6969" |
Jim Hahn | 0a594cf | 2019-04-19 12:47:01 -0400 | [diff] [blame] | 37 | api: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 38 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
Jim Hahn | 0a594cf | 2019-04-19 12:47:01 -0400 | [diff] [blame] | 39 | container_name: policy-api |
| 40 | depends_on: |
| 41 | - mariadb |
| 42 | hostname: policy-api |
| 43 | ports: |
| 44 | - "9969:6969" |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 45 | start_dependencies: |
| 46 | image: dadarek/wait-for-dependencies |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 47 | environment: |
| 48 | TIMEOUT_LENGTH: 60 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 49 | container_name: policy-wait |
| 50 | depends_on: |
| 51 | - mariadb |
| 52 | hostname: policy-wait |
| 53 | command: mariadb:3306 |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 54 | start_all: |
| 55 | image: dadarek/wait-for-dependencies |
| 56 | environment: |
| 57 | TIMEOUT_LENGTH: 60 |
| 58 | container_name: policy-wait-all |
| 59 | depends_on: |
| 60 | - mariadb |
| 61 | - pap |
| 62 | - api |
| 63 | hostname: policy-wait-all |
| 64 | command: |
| 65 | mariadb:3306 |
| 66 | pap:6969 |
| 67 | api:6969 |