blob: fe9bbeade96d6a4eb111770817f2e4998c898ad1 [file] [log] [blame]
Jim Hahn6a4ac582020-11-12 14:11:35 -05001# 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:
Jim Hahn6a4ac582020-11-12 14:11:35 -050017 image: nexus3.onap.org:10001/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:
26 - 3306
27 nexus:
Jim Hahn6a4ac582020-11-12 14:11:35 -050028 image: nexus3.onap.org:10001/sonatype/nexus:2.14.8-01
pdragosh3f9a0962019-04-16 13:19:45 -040029 container_name: nexus
30 hostname: nexus
31 pap:
a.sreekumar20705742020-02-14 12:03:33 +000032 image: nexus3.onap.org:10001/onap/policy-pe:${POLICY_ENGINE_VERSION}
pdragosh3f9a0962019-04-16 13:19:45 -040033 environment:
34 - PRELOAD_POLICIES=${PRELOAD_POLICIES}
35 container_name: pap
36 depends_on:
37 - mariadb
38 hostname: pap
39 expose:
40 - 8443
41 - 9091
42 command: pap
43 volumes:
a.sreekumar20705742020-02-14 12:03:33 +000044 - ${WORKSPACE}/scripts/policy/config/pe:/tmp/policy-install/config
pdragosh3f9a0962019-04-16 13:19:45 -040045 pdp:
a.sreekumar20705742020-02-14 12:03:33 +000046 image: nexus3.onap.org:10001/onap/policy-pe:${POLICY_ENGINE_VERSION}
pdragosh3f9a0962019-04-16 13:19:45 -040047 container_name: pdp
48 depends_on:
49 - pap
50 hostname: pdp
51 expose:
52 - 8081
53 command: pdp
54 volumes:
55 - ./config/pe:/tmp/policy-install/config
56 brmsgw:
a.sreekumar20705742020-02-14 12:03:33 +000057 image: nexus3.onap.org:10001/onap/policy-pe:${POLICY_ENGINE_VERSION}
pdragosh3f9a0962019-04-16 13:19:45 -040058 container_name: brmsgw
59 depends_on:
60 - pap
61 hostname: brmsgw
62 command: brmsgw
63 volumes:
a.sreekumar20705742020-02-14 12:03:33 +000064 - ${WORKSPACE}/scripts/policy/config/pe:/tmp/policy-install/config