Update XACML Tutorial
[policy/parent.git] / docs / xacml / tutorial / app / src / main / docker / docker-compose.yml
1 # ============LICENSE_START=======================================================
2 #  Copyright (C) 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:10.2.14
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       ports:
35        - "3904:3904"
36       expose:
37        - 3904
38    api:
39       image: nexus3.onap.org:10001/onap/policy-api:2.2.4
40       container_name: policy-api
41       depends_on:
42        - mariadb
43       hostname: policy-api
44       ports:
45        - "6767:6969"
46       expose:
47        - 6767
48    pap:
49       image: nexus3.onap.org:10001/onap/policy-pap:2.2.3
50       container_name: policy-pap
51       depends_on:
52        - mariadb
53        - message-router
54        - api
55       hostname: policy-pap
56       ports:
57        - "6868:6969"
58       expose:
59        - 6868
60    xacml-pdp:
61       image: onap/policy-xacml-tutorial
62       container_name: policy-xacml-pdp
63       depends_on:
64        - mariadb
65        - message-router
66        - api
67        - pap
68       hostname: policy-xacml-pdp
69       ports:
70        - "6969:6969"
71       expose:
72        - 6969
73    start_dependencies:
74       image: dadarek/wait-for-dependencies
75       environment:
76         TIMEOUT_LENGTH: 60
77       container_name: policy-wait
78       depends_on:
79         - mariadb
80         - message-router
81       hostname: policy-wait
82       command:
83         mariadb:3306
84         message-router:3904
85    start_all:
86       image: dadarek/wait-for-dependencies
87       environment:
88         TIMEOUT_LENGTH: 60
89       container_name: policy-wait-all
90       depends_on:
91         - mariadb
92         - message-router
93         - api
94         - pap
95         - xacml-pdp
96       hostname: policy-wait-all
97       command:
98         mariadb:3306
99         message-router:3904
100         api:6969
101         pap:6969
102         xacml-pdp:6969