Work around docker rate limit in CSITs
[integration/csit.git] / scripts / policy / policy-distribution / docker-compose-distribution.yml
1 # Copyright (C) 2019 Nordix Foundation.
2 # Modifications Copyright (C) 2020 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: nexus3.onap.org:10001/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    policy-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
45    policy-api:
46       image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
47       container_name: policy-api
48       depends_on:
49        - mariadb
50       hostname: policy-api
51
52
53    distribution:
54       image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
55       container_name: policy-distribution
56       hostname: policy-distribution
57       volumes:
58          - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json
59          - ./config/distribution/temp/:/opt/app/policy/distribution/etc/temp/
60       depends_on:
61        - mariadb
62        - message-router
63        - policy-pap
64        - policy-api
65        - apex
66
67    apex:
68       image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
69       container_name: policy-apex-pdp
70       depends_on:
71        - mariadb
72        - message-router
73        - policy-pap
74       hostname: policy-apex-pdp
75       command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json']
76       ports:
77        - "6969:6969"
78        - "23324:23324"
79    start_dependencies:
80       image: dadarek/wait-for-dependencies
81       environment:
82         TIMEOUT_LENGTH: 60
83       container_name: policy-wait
84       depends_on:
85         - mariadb
86         - message-router
87       hostname: policy-wait
88       command:
89         mariadb:3306
90         message-router:3904
91    start_all:
92       image: dadarek/wait-for-dependencies
93       environment:
94         TIMEOUT_LENGTH: 60
95       container_name: policy-wait-all
96       depends_on:
97         - mariadb
98         - message-router
99         - policy-api
100         - policy-pap
101         - apex
102         - distribution
103       hostname: policy-wait-all
104       command:
105         mariadb:3306
106         message-router:3904
107         policy-api:6969
108         policy-pap:6969
109         apex:6969
110         distribution:6969