blob: 5fc6ef675a07447039caac4d689aa5680f0daabe [file] [log] [blame]
a.sreekumar20705742020-02-14 12:03:33 +00001# Copyright 2018-2020 AT&T Intellectual Property. All rights reserved
pdragosh3f9a0962019-04-16 13:19:45 -04002#
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:
a.sreekumar20705742020-02-14 12:03:33 +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']
a.sreekumar20705742020-02-14 12:03:33 +000021 env_file:
22 - ${WORKSPACE}/scripts/policy/config/db/db.conf
pdragosh3f9a0962019-04-16 13:19:45 -040023 volumes:
a.sreekumar20705742020-02-14 12:03:33 +000024 - ${WORKSPACE}/scripts/policy/config/db:/docker-entrypoint-initdb.d
pdragosh3f9a0962019-04-16 13:19:45 -040025 expose:
a.sreekumar20705742020-02-14 12:03:33 +000026 - 3306
pdragosh3f9a0962019-04-16 13:19:45 -040027 nexus:
28 image: sonatype/nexus:2.14.8-01
29 container_name: nexus
30 hostname: nexus
pdragosh3f9a0962019-04-16 13:19:45 -040031 expose:
a.sreekumar20705742020-02-14 12:03:33 +000032 - 8081
pdragosh3f9a0962019-04-16 13:19:45 -040033 drools:
a.sreekumar20705742020-02-14 12:03:33 +000034 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
pdragosh3f9a0962019-04-16 13:19:45 -040035 container_name: drools
Taka Chob55aef02020-08-25 11:46:02 -040036 depends_on:
a.sreekumar20705742020-02-14 12:03:33 +000037 - mariadb
38 - nexus
pdragosh3f9a0962019-04-16 13:19:45 -040039 hostname: drools
40 expose:
a.sreekumar20705742020-02-14 12:03:33 +000041 - 6969
42 - 9696
pdragosh3f9a0962019-04-16 13:19:45 -040043 volumes:
a.sreekumar20705742020-02-14 12:03:33 +000044 - ${WORKSPACE}/scripts/policy/config/drools/custom:/tmp/policy-install/config
45 env_file:
46 - ${WORKSPACE}/scripts/policy/config/drools/env/base.conf