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: |
Jim Hahn | 6a4ac58 | 2020-11-12 14:11:35 -0500 | [diff] [blame] | 17 | image: nexus3.onap.org:10001/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 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 26 | api: |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 27 | image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 28 | container_name: policy-api |
Bilal A | d46ab2e | 2019-06-07 21:25:59 +0000 | [diff] [blame] | 29 | depends_on: |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 30 | - mariadb |
| 31 | hostname: policy-api |
Jim Hahn | 1ebe7ec | 2020-04-02 13:32:01 -0400 | [diff] [blame] | 32 | expose: |
| 33 | - 6969 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 34 | start_dependencies: |
| 35 | image: dadarek/wait-for-dependencies |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 36 | environment: |
| 37 | TIMEOUT_LENGTH: 60 |
Bilal A | 95097c2 | 2019-04-12 22:38:32 +0000 | [diff] [blame] | 38 | container_name: policy-wait |
| 39 | depends_on: |
| 40 | - mariadb |
| 41 | hostname: policy-wait |
| 42 | command: mariadb:3306 |
Jim Hahn | 954af93 | 2019-06-03 15:00:08 -0400 | [diff] [blame] | 43 | start_all: |
| 44 | image: dadarek/wait-for-dependencies |
| 45 | environment: |
| 46 | TIMEOUT_LENGTH: 60 |
| 47 | container_name: policy-wait-all |
| 48 | depends_on: |
| 49 | - mariadb |
| 50 | - api |
| 51 | hostname: policy-wait-all |
| 52 | command: |
| 53 | mariadb:3306 |
| 54 | api:6969 |