ffee9cdc3b664eeb9a6af79a3412b1d6e581f6d0
[integration/csit.git] / scripts / policy / docker-compose-drools.yml
1 # Copyright 2018 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.
14 version: '2'
15 services:
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: config/db/db.conf
22       volumes:
23          - ./config/db:/docker-entrypoint-initdb.d
24       expose:
25        - 3306
26    nexus:
27       image: sonatype/nexus:2.14.8-01
28       container_name: nexus
29       hostname: nexus
30    pap:
31       image: onap/policy-pe
32       environment:
33        - PRELOAD_POLICIES=${PRELOAD_POLICIES}
34       container_name: pap
35       depends_on: 
36        - mariadb
37       hostname: pap
38       expose:
39        - 8443
40        - 9091
41       command: pap
42       volumes:
43        - ./config/pe:/tmp/policy-install/config
44    drools:
45       image: onap/policy-drools
46       container_name: drools
47       depends_on: 
48        - mariadb
49        - nexus
50       hostname: drools
51       expose:
52        - 6969
53        - 9696
54       volumes:
55        - ./config/drools:/tmp/policy-install/config