af1cbaee75ac192ac16cab6ca6b1233beb12f337
[integration/csit.git] / scripts / policy / policy-xacml-pdp / docker-compose-pdpx.yml
1 # ============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=========================================================
18 version: '2'
19 networks:
20   default:
21     driver: bridge
22 services:
23    mariadb:
24       image: mariadb:${POLICY_MARIADB_VER}
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:
40       image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
41       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:${POLICY_API_VERSION}
48       container_name: policy-api
49       depends_on:
50        - mariadb
51       hostname: policy-api
52    xacml-pdp:
53       image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
54       container_name: policy-xacml-pdp
55       depends_on:
56        - mariadb
57        - message-router
58        - pap
59       hostname: policy-xacml-pdp
60       ports:
61        - "6969:6969"
62    start_dependencies:
63       image: dadarek/wait-for-dependencies
64       environment:
65         TIMEOUT_LENGTH: 60
66       container_name: policy-wait
67       depends_on:
68         - mariadb
69         - message-router
70       hostname: policy-wait
71       command:
72         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