blob: 96a4b122ff200cb539d3907852685571201eec84 [file] [log] [blame]
Michael Mokryb4f69622019-05-13 13:09:17 -05001# ============LICENSE_START=======================================================
2# Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
3# ================================================================================
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'
19networks:
20 default:
21 driver: bridge
22services:
23 mariadb:
24 image: mariadb:10.2.14
25 container_name: mariadb
26 hostname: mariadb
27 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
28 env_file: config/db/db.conf
29 volumes:
30 - ./config/db:/docker-entrypoint-initdb.d
31 ports:
32 - "3306:3306"
33 message-router:
34 image: dmaap/simulator
35 container_name: dmaap-simulator
36 hostname: dmaap-simulator
37 ports:
38 - "3904:3904"
39 pap:
Jim Hahn954af932019-06-03 15:00:08 -040040 image: nexus3.onap.org:10001/onap/policy-pap
Michael Mokryb4f69622019-05-13 13:09:17 -050041 container_name: policy-pap
42 depends_on:
43 - mariadb
44 - message-router
45 hostname: policy-pap
46 api:
47 image: nexus3.onap.org:10001/onap/policy-api
48 container_name: policy-api
49 depends_on:
50 - mariadb
51 hostname: policy-api
52 xacml-pdp:
Jim Hahn954af932019-06-03 15:00:08 -040053 image: nexus3.onap.org:10001/onap/policy-xacml-pdp
Michael Mokryb4f69622019-05-13 13:09:17 -050054 container_name: policy-xacml-pdp
55 depends_on:
56 - mariadb
57 - message-router
58 - pap
Michael Mokryb4f69622019-05-13 13:09:17 -050059 hostname: policy-xacml-pdp
60 ports:
61 - "6969:6969"
62 start_dependencies:
63 image: dadarek/wait-for-dependencies
Jim Hahn954af932019-06-03 15:00:08 -040064 environment:
65 TIMEOUT_LENGTH: 60
Michael Mokryb4f69622019-05-13 13:09:17 -050066 container_name: policy-wait
67 depends_on:
68 - mariadb
69 - message-router
70 hostname: policy-wait
71 command:
Jim Hahn954af932019-06-03 15:00:08 -040072 mariadb:3306
73 message-router:3904
74 start_all:
75 image: dadarek/wait-for-dependencies
76 environment:
77 TIMEOUT_LENGTH: 60
78 container_name: policy-wait-all
79 depends_on:
80 - mariadb
81 - message-router
82 - api
83 - pap
84 - xacml-pdp
85 hostname: policy-wait-all
86 command:
87 mariadb:3306
88 message-router:3904
89 api:6969
90 pap:6969
91 xacml-pdp:6969