blob: d271f5c672f9fe17189de3576adad7fe9c9f7a41 [file] [log] [blame]
Taka Cho6d188af2021-01-11 16:48:33 -05001#
2# ===========LICENSE_START====================================================
3# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -04004# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
Taka Cho6d188af2021-01-11 16:48:33 -05005# ============================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=====================================================
18#
19version: '2'
20services:
21 mariadb:
22 image: nexus3.onap.org:10001/mariadb:${POLICY_MARIADB_VER}
23 container_name: mariadb
24 hostname: mariadb
25 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
26 env_file: config/db/db.conf
27 volumes:
28 - ./config/db:/docker-entrypoint-initdb.d:ro
29 expose:
30 - 3306
Jim Hahn3b56db72021-06-14 10:04:00 -040031 simulator:
Taka Cho6d188af2021-01-11 16:48:33 -050032 image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
Jim Hahn3b56db72021-06-14 10:04:00 -040033 container_name: simulator
34 hostname: simulator
35 networks:
36 default:
37 aliases:
38 - message-router
39 - aai-sim
40 - grpc-sim
41 - sdnc-sim
42 - so-sim
43 - vfc-sim
Taka Cho6d188af2021-01-11 16:48:33 -050044 volumes:
45 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040046 - ./config/ks.jks:/opt/app/policy/simulators/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040047 - ./config/policy-truststore:/opt/app/policy/simulators/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050048 expose:
49 - 6666
50 - 6668
51 - 6669
52 - 6670
53 - 3905
a.sreekumar9a12d022021-07-08 15:32:52 +010054 - 6680
Taka Cho6d188af2021-01-11 16:48:33 -050055 api:
56 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
57 container_name: policy-api
58 depends_on:
59 - mariadb
60 hostname: policy-api
61 expose:
62 - 6969
63 volumes:
Jim Hahn39b7b982021-03-16 14:52:34 -040064 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040065 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050066 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
67 entrypoint: ./wait_for_port.sh
68 command: [
69 '-c', './policy-api.sh',
70 'mariadb', '3306'
71 ]
72 pap:
73 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
74 container_name: policy-pap
75 depends_on:
76 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -040077 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -050078 - api
79 hostname: policy-pap
80 expose:
81 - 6969
82 volumes:
83 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040084 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040085 - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050086 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
87 entrypoint: ./wait_for_port.sh
88 command: [
89 '-c', './policy-pap.sh',
90 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -040091 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -050092 'api', '6969'
93 ]
94 xacml-pdp:
95 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
96 container_name: policy-xacml-pdp
97 depends_on:
98 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -040099 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500100 - pap
101 hostname: policy-xacml-pdp
102 expose:
103 - 6969
104 volumes:
105 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400106 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400107 - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500108 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
109 entrypoint: ./wait_for_port.sh
110 command: [
111 '-c', './policy-pdpx.sh',
112 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400113 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500114 'pap', '6969'
115 ]
116 drools:
117 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
118 container_name: drools
119 depends_on:
120 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400121 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500122 - pap
123 hostname: drools
124 expose:
125 - 6969
126 - 9696
127 volumes:
128 - ./config/drools/custom:/tmp/policy-install/config:ro
129 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
130 env_file:
131 - config/drools/env/base.conf
132 entrypoint: /opt/app/policy/bin/wait_for_port.sh
133 command: [
134 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
135 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400136 'message-router', '3905'
Taka Cho6d188af2021-01-11 16:48:33 -0500137 ]
138 drools-apps:
139 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
140 container_name: drools-apps
141 depends_on:
142 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400143 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500144 - pap
145 - xacml-pdp
146 hostname: drools-apps
147 expose:
148 - 6969
149 - 9696
150 volumes:
151 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400152 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500153 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
154 env_file:
155 - config/drools-apps/env/base.conf
156 - config/drools-apps/env/feature-healthcheck.conf
157 - config/drools-apps/env/feature-pooling-dmaap.conf
158 entrypoint: /opt/app/policy/bin/wait_for_port.sh
159 command: [
160 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
161 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400162 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500163 'pap', '6969',
Jim Hahn3b56db72021-06-14 10:04:00 -0400164 'aai-sim', '6666',
165 'sdnc-sim', '6668',
166 'so-sim', '6669',
167 'vfc-sim', '6670'
Taka Cho6d188af2021-01-11 16:48:33 -0500168 ]
169 apex-pdp:
170 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
171 container_name: policy-apex-pdp
172 depends_on:
173 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400174 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500175 - pap
176 hostname: policy-apex-pdp
177 expose:
178 - 6969
179 - 23324
180 volumes:
181 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400182 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400183 - ./config/policy-truststore:/opt/app/policy/apex-pdp/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500184 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
185 entrypoint: /opt/app/policy/bin/wait_for_port.sh
186 command: [
187 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
188 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400189 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500190 'pap', '6969'
191 ]
192 distribution:
193 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
194 container_name: policy-distribution
195 depends_on:
196 - mariadb
197 - api
198 - pap
199 - apex-pdp
200 hostname: policy-distribution
201 volumes:
202 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400203 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400204 - ./config/policy-truststore:/opt/app/policy/distribution/etc/ssl/policy-truststore:ro
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -0400205 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500206 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
207 entrypoint: /opt/app/policy/bin/wait_for_port.sh
208 command: [
209 '-c', './policy-dist.sh',
210 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400211 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500212 'pap', '6969',
213 'apex-pdp', '6969'
214 ]
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +0100215 policy-controlloop-runtime:
216 image: onap/policy-controlloop-runtime:latest
217 container_name: policy-controlloop-runtime
218 depends_on:
219 - mariadb
220 - simulator
221 - policy-participant
222 - dcae-participant
223 hostname: policy-controlloop-runtime
224 expose:
225 - 6970
226 volumes:
227 - ./config/clamp/ClRuntimeParameters.json:/opt/app/policy/clamp/etc/ClRuntimeParameters.json:ro
228 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
229 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
230 entrypoint: /opt/app/policy/bin/wait_for_port.sh
231 command: [
232 '-c', './controlloop-runtime.sh',
233 'message-router', '3905'
234 ]
235 dcae-participant:
236 image: onap/dcae-participant:latest
237 container_name: dcae-participant
238 depends_on:
239 - simulator
240 hostname: dcae-participant
241 expose:
242 - 6971
243 volumes:
244 - ./config/clamp/DcaeParticipantParameters.json:/opt/app/policy/clamp/etc/DcaeParticipantParameters.json:ro
245 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
246 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
247 entrypoint: /opt/app/policy/bin/wait_for_port.sh
248 command: [
249 '-c', './dcae-participant.sh',
250 'message-router', '3905'
251 ]
252 policy-participant:
253 image: onap/policy-participant:latest
254 container_name: policy-participant
255 depends_on:
256 - simulator
257 - api
258 hostname: policy-participant
259 expose:
260 - 6972
261 volumes:
262 - ./config/clamp/PolicyParticipantParameters.json:/opt/app/policy/clamp/etc/PolicyParticipantParameters.json:ro
263 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
264 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
265 entrypoint: /opt/app/policy/bin/wait_for_port.sh
266 command: [
267 '-c', './policy-participant.sh',
268 'message-router', '3905'
269 ]