blob: c2a1d6334d369eedcd6d11b2e763f9e7191cca20 [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
54 api:
55 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
56 container_name: policy-api
57 depends_on:
58 - mariadb
59 hostname: policy-api
60 expose:
61 - 6969
62 volumes:
Jim Hahn39b7b982021-03-16 14:52:34 -040063 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040064 - ./config/policy-truststore:/opt/app/policy/api/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050065 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
66 entrypoint: ./wait_for_port.sh
67 command: [
68 '-c', './policy-api.sh',
69 'mariadb', '3306'
70 ]
71 pap:
72 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
73 container_name: policy-pap
74 depends_on:
75 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -040076 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -050077 - api
78 hostname: policy-pap
79 expose:
80 - 6969
81 volumes:
82 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040083 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -040084 - ./config/policy-truststore:/opt/app/policy/pap/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050085 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
86 entrypoint: ./wait_for_port.sh
87 command: [
88 '-c', './policy-pap.sh',
89 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -040090 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -050091 'api', '6969'
92 ]
93 xacml-pdp:
94 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
95 container_name: policy-xacml-pdp
96 depends_on:
97 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -040098 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -050099 - pap
100 hostname: policy-xacml-pdp
101 expose:
102 - 6969
103 volumes:
104 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400105 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400106 - ./config/policy-truststore:/opt/app/policy/pdpx/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500107 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
108 entrypoint: ./wait_for_port.sh
109 command: [
110 '-c', './policy-pdpx.sh',
111 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400112 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500113 'pap', '6969'
114 ]
115 drools:
116 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
117 container_name: drools
118 depends_on:
119 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400120 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500121 - pap
122 hostname: drools
123 expose:
124 - 6969
125 - 9696
126 volumes:
127 - ./config/drools/custom:/tmp/policy-install/config:ro
128 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
129 env_file:
130 - config/drools/env/base.conf
131 entrypoint: /opt/app/policy/bin/wait_for_port.sh
132 command: [
133 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
134 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400135 'message-router', '3905'
Taka Cho6d188af2021-01-11 16:48:33 -0500136 ]
137 drools-apps:
138 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
139 container_name: drools-apps
140 depends_on:
141 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400142 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500143 - pap
144 - xacml-pdp
145 hostname: drools-apps
146 expose:
147 - 6969
148 - 9696
149 volumes:
150 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400151 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500152 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
153 env_file:
154 - config/drools-apps/env/base.conf
155 - config/drools-apps/env/feature-healthcheck.conf
156 - config/drools-apps/env/feature-pooling-dmaap.conf
157 entrypoint: /opt/app/policy/bin/wait_for_port.sh
158 command: [
159 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
160 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400161 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500162 'pap', '6969',
Jim Hahn3b56db72021-06-14 10:04:00 -0400163 'aai-sim', '6666',
164 'sdnc-sim', '6668',
165 'so-sim', '6669',
166 'vfc-sim', '6670'
Taka Cho6d188af2021-01-11 16:48:33 -0500167 ]
168 apex-pdp:
169 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
170 container_name: policy-apex-pdp
171 depends_on:
172 - mariadb
Jim Hahn3b56db72021-06-14 10:04:00 -0400173 - simulator
Taka Cho6d188af2021-01-11 16:48:33 -0500174 - pap
175 hostname: policy-apex-pdp
176 expose:
177 - 6969
178 - 23324
179 volumes:
180 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400181 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400182 - ./config/policy-truststore:/opt/app/policy/apex-pdp/etc/ssl/policy-truststore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500183 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
184 entrypoint: /opt/app/policy/bin/wait_for_port.sh
185 command: [
186 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
187 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400188 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500189 'pap', '6969'
190 ]
191 distribution:
192 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
193 container_name: policy-distribution
194 depends_on:
195 - mariadb
196 - api
197 - pap
198 - apex-pdp
199 hostname: policy-distribution
200 volumes:
201 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400202 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400203 - ./config/policy-truststore:/opt/app/policy/distribution/etc/ssl/policy-truststore:ro
Ram Krishna Verma9fe39e82021-05-13 11:03:50 -0400204 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500205 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
206 entrypoint: /opt/app/policy/bin/wait_for_port.sh
207 command: [
208 '-c', './policy-dist.sh',
209 'mariadb', '3306',
Jim Hahnd6cc02e2021-06-11 13:23:20 -0400210 'message-router', '3905',
Taka Cho6d188af2021-01-11 16:48:33 -0500211 'pap', '6969',
212 'apex-pdp', '6969'
213 ]