blob: a42c299695a9ecb2cfe4ab152d70d3cf88e7ecb4 [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:
17 image: mariadb:10.2.14
18 container_name: mariadb
19 hostname: mariadb
20 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
21 env_file:
22 - ${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:
28 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:1.4-SNAPSHOT-latest
29 container_name: drools
30 depends_on:
31 - 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