blob: af1cbaee75ac192ac16cab6ca6b1233beb12f337 [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:
Bilal Ad46ab2e2019-06-07 21:25:59 +000024 image: mariadb:${POLICY_MARIADB_VER}
Michael Mokryb4f69622019-05-13 13:09:17 -050025 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:
Bilal Ad46ab2e2019-06-07 21:25:59 +000040 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
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:
Bilal Ad46ab2e2019-06-07 21:25:59 +000047 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
Michael Mokryb4f69622019-05-13 13:09:17 -050048 container_name: policy-api
49 depends_on:
50 - mariadb
51 hostname: policy-api
52 xacml-pdp:
Bilal Ad46ab2e2019-06-07 21:25:59 +000053 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
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