blob: aaa62e99e9ee45020189e68f27fed8af748c0c6f [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 Hahnd6cc02e2021-06-11 13:23:20 -040031 message-router:
Taka Cho6d188af2021-01-11 16:48:33 -050032 image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
Jim Hahnd6cc02e2021-06-11 13:23:20 -040033 container_name: message-router
34 hostname: message-router
Taka Cho6d188af2021-01-11 16:48:33 -050035 volumes:
36 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040037 - ./config/ks.jks:/opt/app/policy/simulators/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040038 - ./config/policy-truststore:/opt/app/policy/simulators/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050039 expose:
40 - 6666
41 - 6668
42 - 6669
43 - 6670
44 - 3905
45 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 expose:
52 - 6969
53 volumes:
Jim Hahn39b7b982021-03-16 14:52:34 -040054 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040055 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050056 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
57 entrypoint: ./wait_for_port.sh
58 command: [
59 '-c', './policy-api.sh',
60 'mariadb', '3306'
61 ]
62 pap:
63 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
64 container_name: policy-pap
65 depends_on:
66 - mariadb
Jim Hahnd6cc02e2021-06-11 13:23:20 -040067 - message-router
Taka Cho6d188af2021-01-11 16:48:33 -050068 - api
69 hostname: policy-pap
70 expose:
71 - 6969
72 volumes:
73 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040074 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040075 - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050076 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
77 entrypoint: ./wait_for_port.sh
78 command: [
79 '-c', './policy-pap.sh',
80 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -040081 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -050082 'api', '6969'
83 ]
84 xacml-pdp:
85 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
86 container_name: policy-xacml-pdp
87 depends_on:
88 - mariadb
Jim Hahnd6cc02e2021-06-11 13:23:20 -040089 - message-router
Taka Cho6d188af2021-01-11 16:48:33 -050090 - pap
91 hostname: policy-xacml-pdp
92 expose:
93 - 6969
94 volumes:
95 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040096 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040097 - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050098 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
99 entrypoint: ./wait_for_port.sh
100 command: [
101 '-c', './policy-pdpx.sh',
102 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400103 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500104 'pap', '6969'
105 ]
106 drools:
107 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
108 container_name: drools
109 depends_on:
110 - mariadb
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400111 - message-router
Taka Cho6d188af2021-01-11 16:48:33 -0500112 - pap
113 hostname: drools
114 expose:
115 - 6969
116 - 9696
117 volumes:
118 - ./config/drools/custom:/tmp/policy-install/config:ro
119 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
120 env_file:
121 - config/drools/env/base.conf
122 entrypoint: /opt/app/policy/bin/wait_for_port.sh
123 command: [
124 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
125 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400126 'message-router', '3905'
Taka Cho6d188af2021-01-11 16:48:33 -0500127 ]
128 drools-apps:
129 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
130 container_name: drools-apps
131 depends_on:
132 - mariadb
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400133 - message-router
Taka Cho6d188af2021-01-11 16:48:33 -0500134 - pap
135 - xacml-pdp
136 hostname: drools-apps
137 expose:
138 - 6969
139 - 9696
140 volumes:
141 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400142 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500143 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
144 env_file:
145 - config/drools-apps/env/base.conf
146 - config/drools-apps/env/feature-healthcheck.conf
147 - config/drools-apps/env/feature-pooling-dmaap.conf
148 entrypoint: /opt/app/policy/bin/wait_for_port.sh
149 command: [
150 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
151 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400152 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500153 'pap', '6969',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400154 'message-router', '6666',
155 'message-router', '6668',
156 'message-router', '6669',
157 'message-router', '6670'
Taka Cho6d188af2021-01-11 16:48:33 -0500158 ]
159 apex-pdp:
160 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
161 container_name: policy-apex-pdp
162 depends_on:
163 - mariadb
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400164 - message-router
Taka Cho6d188af2021-01-11 16:48:33 -0500165 - pap
166 hostname: policy-apex-pdp
167 expose:
168 - 6969
169 - 23324
170 volumes:
171 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400172 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400173 - ./config/policy-truststore:/opt/app/policy/apex-pdp/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500174 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
175 entrypoint: /opt/app/policy/bin/wait_for_port.sh
176 command: [
177 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
178 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400179 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500180 'pap', '6969'
181 ]
182 distribution:
183 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
184 container_name: policy-distribution
185 depends_on:
186 - mariadb
187 - api
188 - pap
189 - apex-pdp
190 hostname: policy-distribution
191 volumes:
192 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400193 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400194 - ./config/policy-truststore:/opt/app/policy/distribution/etc/ssl/policy-truststore:ro
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -0400195 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500196 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
197 entrypoint: /opt/app/policy/bin/wait_for_port.sh
198 command: [
199 '-c', './policy-dist.sh',
200 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400201 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500202 'pap', '6969',
203 'apex-pdp', '6969'
204 ]