blob: c01aaaa57c4456a99899fdeeee746a9e4caeaf7d [file] [log] [blame]
a.sreekumar7d80c382019-05-07 13:36:39 +00001# Copyright (C) 2019 Nordix Foundation.
Jim Hahn954af932019-06-03 15:00:08 -04002# Modifications Copyright (C) 2019 AT&T Intellectual Property.
a.sreekumar7d80c382019-05-07 13:36:39 +00003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15version: '2'
16networks:
17 default:
18 driver: bridge
19services:
20 mariadb:
Bilal Ad46ab2e2019-06-07 21:25:59 +000021 image: mariadb:${POLICY_MARIADB_VER}
a.sreekumar7d80c382019-05-07 13:36:39 +000022 container_name: mariadb
23 hostname: mariadb
24 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
25 env_file: config/db/db.conf
26 volumes:
27 - ./config/db:/docker-entrypoint-initdb.d
28 ports:
29 - "3306:3306"
a.sreekumara11989f2019-06-17 10:16:43 +000030 message-router:
a.sreekumar7d80c382019-05-07 13:36:39 +000031 image: dmaap/simulator
32 container_name: dmaap-simulator
33 hostname: dmaap-simulator
34 ports:
35 - "3904:3904"
36 pap:
Bilal Ad46ab2e2019-06-07 21:25:59 +000037 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
a.sreekumar7d80c382019-05-07 13:36:39 +000038 container_name: policy-pap
39 depends_on:
40 - mariadb
a.sreekumara11989f2019-06-17 10:16:43 +000041 - message-router
a.sreekumar7d80c382019-05-07 13:36:39 +000042 hostname: policy-pap
a.sreekumara11989f2019-06-17 10:16:43 +000043
a.sreekumar7d80c382019-05-07 13:36:39 +000044 api:
Bilal Ad46ab2e2019-06-07 21:25:59 +000045 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
a.sreekumar7d80c382019-05-07 13:36:39 +000046 container_name: policy-api
47 depends_on:
48 - mariadb
49 hostname: policy-api
50 apex:
Bilal Ad46ab2e2019-06-07 21:25:59 +000051 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
a.sreekumar7d80c382019-05-07 13:36:39 +000052 container_name: policy-apex-pdp
53 depends_on:
54 - mariadb
a.sreekumara11989f2019-06-17 10:16:43 +000055 - message-router
a.sreekumar7d80c382019-05-07 13:36:39 +000056 - pap
a.sreekumar7d80c382019-05-07 13:36:39 +000057 hostname: policy-apex-pdp
58 command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', '-p', '/opt/app/policy/apex-pdp/etc/onappf/config/topic.properties']
a.sreekumara11989f2019-06-17 10:16:43 +000059
a.sreekumar7d80c382019-05-07 13:36:39 +000060 ports:
61 - "6969:6969"
62 - "23324:23324"
63 start_dependencies:
64 image: dadarek/wait-for-dependencies
Jim Hahn954af932019-06-03 15:00:08 -040065 environment:
66 TIMEOUT_LENGTH: 60
a.sreekumar7d80c382019-05-07 13:36:39 +000067 container_name: policy-wait
68 depends_on:
69 - mariadb
a.sreekumara11989f2019-06-17 10:16:43 +000070 - message-router
a.sreekumar7d80c382019-05-07 13:36:39 +000071 hostname: policy-wait
72 command:
Jim Hahn954af932019-06-03 15:00:08 -040073 mariadb:3306
a.sreekumara11989f2019-06-17 10:16:43 +000074 message-router:3904
Jim Hahn954af932019-06-03 15:00:08 -040075 start_all:
76 image: dadarek/wait-for-dependencies
77 environment:
78 TIMEOUT_LENGTH: 60
79 container_name: policy-wait-all
80 depends_on:
81 - mariadb
a.sreekumara11989f2019-06-17 10:16:43 +000082 - message-router
Jim Hahn954af932019-06-03 15:00:08 -040083 - api
84 - pap
85 - apex
86 hostname: policy-wait-all
87 command:
88 mariadb:3306
a.sreekumara11989f2019-06-17 10:16:43 +000089 message-router:3904
Jim Hahn954af932019-06-03 15:00:08 -040090 api:6969
91 pap:6969
92 apex:6969