blob: caf8315bc9e0ed3dda2b8350a28ca39a83cf134e [file] [log] [blame]
Michael Mokryb4f69622019-05-13 13:09:17 -05001# ============LICENSE_START=======================================================
Jim Hahn1ebe7ec2020-04-02 13:32:01 -04002# Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
Michael Mokryb4f69622019-05-13 13:09:17 -05003# ================================================================================
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.
15#
16# SPDX-License-Identifier: Apache-2.0
17# ============LICENSE_END=========================================================
18version: '2'
Michael Mokryb4f69622019-05-13 13:09:17 -050019services:
20 mariadb:
Bilal Ad46ab2e2019-06-07 21:25:59 +000021 image: mariadb:${POLICY_MARIADB_VER}
Michael Mokryb4f69622019-05-13 13:09:17 -050022 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
Jim Hahn1ebe7ec2020-04-02 13:32:01 -040028 expose:
29 - 3306
Michael Mokryb4f69622019-05-13 13:09:17 -050030 message-router:
31 image: dmaap/simulator
32 container_name: dmaap-simulator
33 hostname: dmaap-simulator
Jim Hahn1ebe7ec2020-04-02 13:32:01 -040034 expose:
35 - 3904
Michael Mokryb4f69622019-05-13 13:09:17 -050036 pap:
Bilal Ad46ab2e2019-06-07 21:25:59 +000037 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
Michael Mokryb4f69622019-05-13 13:09:17 -050038 container_name: policy-pap
39 depends_on:
40 - mariadb
41 - message-router
42 hostname: policy-pap
43 api:
Bilal Ad46ab2e2019-06-07 21:25:59 +000044 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
Michael Mokryb4f69622019-05-13 13:09:17 -050045 container_name: policy-api
46 depends_on:
47 - mariadb
48 hostname: policy-api
49 xacml-pdp:
Bilal Ad46ab2e2019-06-07 21:25:59 +000050 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
Michael Mokryb4f69622019-05-13 13:09:17 -050051 container_name: policy-xacml-pdp
52 depends_on:
53 - mariadb
54 - message-router
55 - pap
Michael Mokryb4f69622019-05-13 13:09:17 -050056 hostname: policy-xacml-pdp
Jim Hahn1ebe7ec2020-04-02 13:32:01 -040057 expose:
58 - 6969
Michael Mokryb4f69622019-05-13 13:09:17 -050059 start_dependencies:
60 image: dadarek/wait-for-dependencies
Jim Hahn954af932019-06-03 15:00:08 -040061 environment:
62 TIMEOUT_LENGTH: 60
Michael Mokryb4f69622019-05-13 13:09:17 -050063 container_name: policy-wait
64 depends_on:
65 - mariadb
66 - message-router
67 hostname: policy-wait
68 command:
Jim Hahn954af932019-06-03 15:00:08 -040069 mariadb:3306
70 message-router:3904
71 start_all:
72 image: dadarek/wait-for-dependencies
73 environment:
74 TIMEOUT_LENGTH: 60
75 container_name: policy-wait-all
76 depends_on:
77 - mariadb
78 - message-router
79 - api
80 - pap
81 - xacml-pdp
82 hostname: policy-wait-all
83 command:
84 mariadb:3306
85 message-router:3904
86 api:6969
87 pap:6969
88 xacml-pdp:6969