blob: 5438557ba452adcdbcf26716b5c41efdb6a13734 [file] [log] [blame]
Jim Hahn1ebe7ec2020-04-02 13:32:01 -04001# Copyright 2019-2020 AT&T Intellectual Property. All rights reserved
Bilal A95097c22019-04-12 22:38:32 +00002#
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'
Bilal A95097c22019-04-12 22:38:32 +000015services:
16 mariadb:
Bilal Ad46ab2e2019-06-07 21:25:59 +000017 image: mariadb:${POLICY_MARIADB_VER}
Bilal A95097c22019-04-12 22:38:32 +000018 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 Hahn1ebe7ec2020-04-02 13:32:01 -040024 expose:
25 - 3306
Bilal A95097c22019-04-12 22:38:32 +000026 pap:
Bilal Ad46ab2e2019-06-07 21:25:59 +000027 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
Bilal A95097c22019-04-12 22:38:32 +000028 container_name: policy-pap
Bilal Ad46ab2e2019-06-07 21:25:59 +000029 depends_on:
Jim Hahn954af932019-06-03 15:00:08 -040030 - mariadb
Bilal A95097c22019-04-12 22:38:32 +000031 hostname: policy-pap
Jim Hahn1ebe7ec2020-04-02 13:32:01 -040032 expose:
33 - 6969
Jim Hahn0a594cf2019-04-19 12:47:01 -040034 api:
Bilal Ad46ab2e2019-06-07 21:25:59 +000035 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
Jim Hahn0a594cf2019-04-19 12:47:01 -040036 container_name: policy-api
37 depends_on:
38 - mariadb
39 hostname: policy-api
Jim Hahn1ebe7ec2020-04-02 13:32:01 -040040 expose:
41 - 6969
Bilal A95097c22019-04-12 22:38:32 +000042 start_dependencies:
43 image: dadarek/wait-for-dependencies
Jim Hahn954af932019-06-03 15:00:08 -040044 environment:
45 TIMEOUT_LENGTH: 60
Bilal A95097c22019-04-12 22:38:32 +000046 container_name: policy-wait
47 depends_on:
48 - mariadb
49 hostname: policy-wait
50 command: mariadb:3306
Jim Hahn954af932019-06-03 15:00:08 -040051 start_all:
52 image: dadarek/wait-for-dependencies
53 environment:
54 TIMEOUT_LENGTH: 60
55 container_name: policy-wait-all
56 depends_on:
57 - mariadb
58 - pap
59 - api
60 hostname: policy-wait-all
61 command:
62 mariadb:3306
63 pap:6969
64 api:6969