blob: 4cdde39e5d12b356c93601a8768fdd24facdacf1 [file] [log] [blame]
RehanRazac5fbfd02021-05-24 18:00:49 +02001#
2# ===========LICENSE_START====================================================
3# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
4# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
5# Modifications Copyright (C) 2021 Nordix Foundation. All rights reserved.
6# ============================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END=====================================================
19#
20version: '2'
21networks:
22 default:
23 driver: bridge
24 name: nonrtric-docker-net
25services:
26 mariadb:
27 image: nexus3.onap.org:10001/mariadb:10.5.8
28 container_name: mariadb
29 hostname: mariadb
30 command: ['--lower-case-table-names=1', '--wait_timeout=28800']
31 env_file: config/db/db.conf
32 volumes:
33 - ./config/db:/docker-entrypoint-initdb.d:ro
34 expose:
35 - 3306
36 api:
37 image: nexus3.onap.org:10001/onap/policy-api:2.4.2
38 container_name: policy-api
39 depends_on:
40 - mariadb
41 hostname: policy-api
42 ports:
43 - "6969:6969"
44 expose:
45 - 6969
46 volumes:
47 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore.jks:ro
48 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
49 entrypoint: ./wait_for_port.sh
50 command: [
51 '-c', './policy-api.sh',
52 'mariadb', '3306'
53 ]
54 pap:
55 image: nexus3.onap.org:10001/onap/policy-pap:2.4.2
56 container_name: policy-pap
57 depends_on:
58 - mariadb
59 - api
60 hostname: policy-pap
61 ports:
62 - "6868:6969"
63 expose:
64 - 6868
65 volumes:
66 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
67 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore.jks:ro
68 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
69 entrypoint: ./wait_for_port.sh
70 command: [
71 '-c', './policy-pap.sh',
72 'mariadb', '3306',
73 'dmaap-mr', '3904',
74 'api', '6969'
75 ]
76 xacml-pdp:
77 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:2.4.2
78 container_name: policy-xacml-pdp
79 depends_on:
80 - mariadb
81 - pap
82 hostname: policy-xacml-pdp
83 expose:
84 - 6969
85 volumes:
86 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
87 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore.jks:ro
88 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
89 entrypoint: ./wait_for_port.sh
90 command: [
91 '-c', './policy-pdpx.sh',
92 'mariadb', '3306',
93 'dmaap-mr', '3904',
94 'pap', '6969'
95 ]
96 drools:
97 image: nexus3.onap.org:10001/onap/policy-drools:1.8.2
98 container_name: drools
99 depends_on:
100 - mariadb
101 - pap
102 hostname: drools
103 expose:
104 - 6969
105 - 9696
106 volumes:
107 - ./config/drools/custom:/tmp/policy-install/config:ro
108 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
109 env_file:
110 - config/drools/env/base.conf
111 entrypoint: /opt/app/policy/bin/wait_for_port.sh
112 command: [
113 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
114 'mariadb', '3306',
115 'dmaap-mr', '3904'
116 ]
117 drools-apps:
118 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:1.8.2
119 container_name: drools-apps
120 depends_on:
121 - mariadb
122 - pap
123 - xacml-pdp
124 hostname: drools-apps
125 expose:
126 - 6969
127 - 9696
128 volumes:
129 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
130 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
131 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
132 env_file:
133 - config/drools-apps/env/base.conf
134 - config/drools-apps/env/feature-healthcheck.conf
135 - config/drools-apps/env/feature-pooling-dmaap.conf
136 entrypoint: /opt/app/policy/bin/wait_for_port.sh
137 command: [
138 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
139 'mariadb', '3306',
140 'dmaap-mr', '3904',
141 'pap', '6969',
142 'dmaap-mr', '6666',
143 'dmaap-mr', '6668',
144 'dmaap-mr', '6669',
145 'dmaap-mr', '6670'
146 ]
147 apex-pdp:
148 image: onap/policy-apex-pdp:latest
149 container_name: policy-apex-pdp
150 depends_on:
151 - mariadb
152 - pap
153 hostname: policy-apex-pdp
154 expose:
155 - 6969
156 - 23324
157 volumes:
158 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
159 - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore.jks:ro
160 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
161 entrypoint: /opt/app/policy/bin/wait_for_port.sh
162 command: [
163 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
164 'mariadb', '3306',
165 'dmaap-mr', '3904',
166 'pap', '6969'
167 ]
168 distribution:
169 image: nexus3.onap.org:10001/onap/policy-distribution:2.5.2
170 container_name: policy-distribution
171 depends_on:
172 - mariadb
173 - api
174 - pap
175 - apex-pdp
176 hostname: policy-distribution
177 volumes:
178 - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
179 - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore.jks:ro
180 - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
181 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
182 entrypoint: /opt/app/policy/bin/wait_for_port.sh
183 command: [
184 '-c', './policy-dist.sh',
185 'mariadb', '3306',
186 'dmaap-mr', '3904',
187 'pap', '6969',
188 'apex-pdp', '6969'
189 ]