blob: 3ef64368854e38876668fff1727f03ee141acdfd [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.
4# ============================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16# ============LICENSE_END=====================================================
17#
18version: '2'
19services:
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:ro
28 expose:
29 - 3306
30 policy.api.simpledemo.onap.org:
31 image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION}
32 container_name: policy.api.simpledemo.onap.org
33 hostname: policy.api.simpledemo.onap.org
34 volumes:
35 - ./config/sim-all:/opt/app/policy/simulators/etc/mounted:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040036 - ./config/ks.jks:/opt/app/policy/simulators/etc/ssl/policy-keystore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050037 expose:
38 - 6666
39 - 6668
40 - 6669
41 - 6670
42 - 3905
43 api:
44 image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
45 container_name: policy-api
46 depends_on:
47 - mariadb
48 hostname: policy-api
49 expose:
50 - 6969
51 volumes:
Jim Hahn39b7b982021-03-16 14:52:34 -040052 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050053 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
54 entrypoint: ./wait_for_port.sh
55 command: [
56 '-c', './policy-api.sh',
57 'mariadb', '3306'
58 ]
59 pap:
60 image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
61 container_name: policy-pap
62 depends_on:
63 - mariadb
64 - policy.api.simpledemo.onap.org
65 - api
66 hostname: policy-pap
67 expose:
68 - 6969
69 volumes:
70 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040071 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050072 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
73 entrypoint: ./wait_for_port.sh
74 command: [
75 '-c', './policy-pap.sh',
76 'mariadb', '3306',
77 'policy.api.simpledemo.onap.org', '3905',
78 'api', '6969'
79 ]
80 xacml-pdp:
81 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
82 container_name: policy-xacml-pdp
83 depends_on:
84 - mariadb
85 - policy.api.simpledemo.onap.org
86 - pap
87 hostname: policy-xacml-pdp
88 expose:
89 - 6969
90 volumes:
91 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -040092 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore:ro
Taka Cho6d188af2021-01-11 16:48:33 -050093 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
94 entrypoint: ./wait_for_port.sh
95 command: [
96 '-c', './policy-pdpx.sh',
97 'mariadb', '3306',
98 'policy.api.simpledemo.onap.org', '3905',
99 'pap', '6969'
100 ]
101 drools:
102 image: nexus3.onap.org:10001/onap/policy-drools:${POLICY_DROOLS_VERSION}
103 container_name: drools
104 depends_on:
105 - mariadb
106 - policy.api.simpledemo.onap.org
107 - pap
108 hostname: drools
109 expose:
110 - 6969
111 - 9696
112 volumes:
113 - ./config/drools/custom:/tmp/policy-install/config:ro
114 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
115 env_file:
116 - config/drools/env/base.conf
117 entrypoint: /opt/app/policy/bin/wait_for_port.sh
118 command: [
119 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
120 'mariadb', '3306',
121 'policy.api.simpledemo.onap.org', '3905'
122 ]
123 drools-apps:
124 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
125 container_name: drools-apps
126 depends_on:
127 - mariadb
128 - policy.api.simpledemo.onap.org
129 - pap
130 - xacml-pdp
131 hostname: drools-apps
132 expose:
133 - 6969
134 - 9696
135 volumes:
136 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400137 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500138 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
139 env_file:
140 - config/drools-apps/env/base.conf
141 - config/drools-apps/env/feature-healthcheck.conf
142 - config/drools-apps/env/feature-pooling-dmaap.conf
143 entrypoint: /opt/app/policy/bin/wait_for_port.sh
144 command: [
145 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
146 'mariadb', '3306',
147 'policy.api.simpledemo.onap.org', '3905',
148 'pap', '6969',
149 'policy.api.simpledemo.onap.org', '6666',
150 'policy.api.simpledemo.onap.org', '6668',
151 'policy.api.simpledemo.onap.org', '6669',
152 'policy.api.simpledemo.onap.org', '6670'
153 ]
154 apex-pdp:
155 image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
156 container_name: policy-apex-pdp
157 depends_on:
158 - mariadb
159 - policy.api.simpledemo.onap.org
160 - pap
161 hostname: policy-apex-pdp
162 expose:
163 - 6969
164 - 23324
165 volumes:
166 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400167 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500168 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
169 entrypoint: /opt/app/policy/bin/wait_for_port.sh
170 command: [
171 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
172 'mariadb', '3306',
173 'policy.api.simpledemo.onap.org', '3905',
174 'pap', '6969'
175 ]
176 distribution:
177 image: nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
178 container_name: policy-distribution
179 depends_on:
180 - mariadb
181 - api
182 - pap
183 - apex-pdp
184 hostname: policy-distribution
185 volumes:
186 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
Jim Hahn39b7b982021-03-16 14:52:34 -0400187 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore:ro
Taka Choc6d046f2021-03-11 16:55:20 -0500188 - ../distribution/csit/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
Taka Cho6d188af2021-01-11 16:48:33 -0500189 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
190 entrypoint: /opt/app/policy/bin/wait_for_port.sh
191 command: [
192 '-c', './policy-dist.sh',
193 'mariadb', '3306',
194 'policy.api.simpledemo.onap.org', '3905',
195 'pap', '6969',
196 'apex-pdp', '6969'
197 ]