blob: 1bab1894045c32ff1d7aaf1a14695ad1dc4c2573 [file] [log] [blame]
Bilal A95097c22019-04-12 22:38:32 +00001# 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.
14version: '2'
15networks:
16 default:
17 driver: bridge
18services:
19 mariadb:
Bilal Ad46ab2e2019-06-07 21:25:59 +000020 image: mariadb:${POLICY_MARIADB_VER}
Bilal A95097c22019-04-12 22:38:32 +000021 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 api:
Bilal Ad46ab2e2019-06-07 21:25:59 +000030 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
Bilal A95097c22019-04-12 22:38:32 +000031 container_name: policy-api
Bilal Ad46ab2e2019-06-07 21:25:59 +000032 depends_on:
Bilal A95097c22019-04-12 22:38:32 +000033 - mariadb
34 hostname: policy-api
35 ports:
36 - "6969:6969"
37 start_dependencies:
38 image: dadarek/wait-for-dependencies
Jim Hahn954af932019-06-03 15:00:08 -040039 environment:
40 TIMEOUT_LENGTH: 60
Bilal A95097c22019-04-12 22:38:32 +000041 container_name: policy-wait
42 depends_on:
43 - mariadb
44 hostname: policy-wait
45 command: mariadb:3306
Jim Hahn954af932019-06-03 15:00:08 -040046 start_all:
47 image: dadarek/wait-for-dependencies
48 environment:
49 TIMEOUT_LENGTH: 60
50 container_name: policy-wait-all
51 depends_on:
52 - mariadb
53 - api
54 hostname: policy-wait-all
55 command:
56 mariadb:3306
57 api:6969