caf8315bc9e0ed3dda2b8350a28ca39a83cf134e
[integration/csit.git] / scripts / policy / policy-xacml-pdp / docker-compose-pdpx.yml
1 # ============LICENSE_START=======================================================
2 #  Copyright (C) 2019-2020 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 services:
20    mariadb:
21       image: mariadb:${POLICY_MARIADB_VER}
22       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       expose:
29        - 3306
30    message-router:
31       image: dmaap/simulator
32       container_name: dmaap-simulator
33       hostname: dmaap-simulator
34       expose:
35        - 3904
36    pap:
37       image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
38       container_name: policy-pap
39       depends_on:
40        - mariadb
41        - message-router
42       hostname: policy-pap
43    api:
44       image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
45       container_name: policy-api
46       depends_on:
47        - mariadb
48       hostname: policy-api
49    xacml-pdp:
50       image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
51       container_name: policy-xacml-pdp
52       depends_on:
53        - mariadb
54        - message-router
55        - pap
56       hostname: policy-xacml-pdp
57       expose:
58        - 6969
59    start_dependencies:
60       image: dadarek/wait-for-dependencies
61       environment:
62         TIMEOUT_LENGTH: 60
63       container_name: policy-wait
64       depends_on:
65         - mariadb
66         - message-router
67       hostname: policy-wait
68       command:
69         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