blob: 14a2161f592dabd8f2d1dffdfad8be61d35efcd5 [file] [log] [blame]
pdragosh3f9a0962019-04-16 13:19:45 -04001# 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'
15services:
16 mariadb:
Bilal Ad46ab2e2019-06-07 21:25:59 +000017 image: mariadb:${POLICY_MARIADB_VER}
pdragosh3f9a0962019-04-16 13:19:45 -040018 container_name: mariadb
19 hostname: mariadb
20 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
Bilal Ad46ab2e2019-06-07 21:25:59 +000021 env_file:
pdragosh3f9a0962019-04-16 13:19:45 -040022 - ${WORKSPACE}/scripts/policy/config/db/db.conf
23 volumes:
24 - ${WORKSPACE}/scripts/policy/config/db:/docker-entrypoint-initdb.d
25 expose:
26 - 3306
27 drools:
Bilal Ad46ab2e2019-06-07 21:25:59 +000028 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
pdragosh3f9a0962019-04-16 13:19:45 -040029 container_name: drools
Bilal Ad46ab2e2019-06-07 21:25:59 +000030 depends_on:
pdragosh3f9a0962019-04-16 13:19:45 -040031 - mariadb
32 hostname: drools
33 expose:
34 - 6969
35 - 9696
36 volumes:
37 - ${WORKSPACE}/scripts/policy/config/drools:/tmp/policy-install/config
38 environment:
39 - DEBUG=y
40 start_dependencies:
41 image: dadarek/wait-for-dependencies
42 container_name: policy-wait
43 depends_on:
44 - mariadb
45 hostname: policy-wait
46 command: mariadb:3306
47