Add test for csar validation get result using execution id.
[integration/csit.git] / scripts / policy / policy-apex-pdp / docker-compose-apex.yml
1 # Copyright (C) 2019 Nordix Foundation.
2 # Modifications Copyright (C) 2019 AT&T Intellectual Property.
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 version: '2'
16 networks:
17   default:
18     driver: bridge
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       ports:
29        - "3306:3306"
30    message-router:
31       image: dmaap/simulator
32       container_name: dmaap-simulator
33       hostname: dmaap-simulator
34       ports:
35        - "3904: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
44    api:
45       image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
46       container_name: policy-api
47       depends_on:
48        - mariadb
49       hostname: policy-api
50    apex:
51       image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
52       container_name: policy-apex-pdp
53       depends_on:
54        - mariadb
55        - message-router
56        - pap
57       hostname: policy-apex-pdp
58       command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json']
59
60       ports:
61        - "6969:6969"
62        - "23324:23324"
63    start_dependencies:
64       image: dadarek/wait-for-dependencies
65       environment:
66         TIMEOUT_LENGTH: 60
67       container_name: policy-wait
68       depends_on:
69         - mariadb
70         - message-router
71       hostname: policy-wait
72       command:
73         mariadb:3306
74         message-router:3904
75    start_all:
76       image: dadarek/wait-for-dependencies
77       environment:
78         TIMEOUT_LENGTH: 60
79       container_name: policy-wait-all
80       depends_on:
81         - mariadb
82         - message-router
83         - api
84         - pap
85         - apex
86       hostname: policy-wait-all
87       command:
88         mariadb:3306
89         message-router:3904
90         api:6969
91         pap:6969
92         apex:6969