blob: 894b117f4d618eae53952849c91931090af061a7 [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
RehanRazac5fbfd02021-05-24 18:00:49 +020030 volumes:
RehanRazaa5c520f2021-07-15 14:53:03 +020031 - db-vol:/var/lib/mysql
32 - "./config/db/:/docker-entrypoint-initdb.d:rw"
33 environment:
34 - MYSQL_ROOT_PASSWORD=strong_pitchou
35 ports:
36 - "3306:3306"
RehanRazac5fbfd02021-05-24 18:00:49 +020037 expose:
38 - 3306
39 api:
40 image: nexus3.onap.org:10001/onap/policy-api:2.4.2
41 container_name: policy-api
42 depends_on:
43 - mariadb
44 hostname: policy-api
45 ports:
RehanRazaa5c520f2021-07-15 14:53:03 +020046 - "6869:6969"
RehanRazac5fbfd02021-05-24 18:00:49 +020047 expose:
RehanRazaa5c520f2021-07-15 14:53:03 +020048 - 6869
RehanRazac5fbfd02021-05-24 18:00:49 +020049 volumes:
RehanRazaa5c520f2021-07-15 14:53:03 +020050 - ./config/api/defaultConfig.json:/opt/app/policy/api/etc/defaultConfig.json:ro
RehanRazac5fbfd02021-05-24 18:00:49 +020051 - ./config/ks.jks:/opt/app/policy/api/etc/ssl/policy-keystore.jks:ro
52 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
53 entrypoint: ./wait_for_port.sh
54 command: [
55 '-c', './policy-api.sh',
56 'mariadb', '3306'
57 ]
58 pap:
59 image: nexus3.onap.org:10001/onap/policy-pap:2.4.2
60 container_name: policy-pap
61 depends_on:
62 - mariadb
63 - api
64 hostname: policy-pap
65 ports:
66 - "6868:6969"
67 expose:
68 - 6868
69 volumes:
70 - ./config/pap/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json:ro
71 - ./config/ks.jks:/opt/app/policy/pap/etc/ssl/policy-keystore.jks:ro
72 - ./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',
RehanRazac650c1e2021-06-04 16:18:09 +020077 'onap-dmaap', '3904',
RehanRazac5fbfd02021-05-24 18:00:49 +020078 'api', '6969'
79 ]
80 xacml-pdp:
81 image: nexus3.onap.org:10001/onap/policy-xacml-pdp:2.4.2
82 container_name: policy-xacml-pdp
83 depends_on:
84 - mariadb
85 - pap
86 hostname: policy-xacml-pdp
87 expose:
88 - 6969
89 volumes:
90 - ./config/xacml-pdp/defaultConfig.json:/opt/app/policy/pdpx/etc/defaultConfig.json:ro
91 - ./config/ks.jks:/opt/app/policy/pdpx/etc/ssl/policy-keystore.jks:ro
92 - ./wait_for_port.sh:/opt/app/policy/pdpx/bin/wait_for_port.sh:ro
93 entrypoint: ./wait_for_port.sh
94 command: [
95 '-c', './policy-pdpx.sh',
96 'mariadb', '3306',
RehanRazac650c1e2021-06-04 16:18:09 +020097 'onap-dmaap', '3904',
RehanRazac5fbfd02021-05-24 18:00:49 +020098 'pap', '6969'
99 ]
100 drools:
101 image: nexus3.onap.org:10001/onap/policy-drools:1.8.2
102 container_name: drools
103 depends_on:
104 - mariadb
105 - pap
106 hostname: drools
107 expose:
108 - 6969
109 - 9696
110 volumes:
111 - ./config/drools/custom:/tmp/policy-install/config:ro
112 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
113 env_file:
114 - config/drools/env/base.conf
115 entrypoint: /opt/app/policy/bin/wait_for_port.sh
116 command: [
117 '-c', '/opt/app/policy/bin/pdpd-entrypoint.sh boot',
118 'mariadb', '3306',
RehanRazac650c1e2021-06-04 16:18:09 +0200119 'onap-dmaap', '3904'
RehanRazac5fbfd02021-05-24 18:00:49 +0200120 ]
121 drools-apps:
122 image: nexus3.onap.org:10001/onap/policy-pdpd-cl:1.8.2
123 container_name: drools-apps
124 depends_on:
125 - mariadb
126 - pap
127 - xacml-pdp
128 hostname: drools-apps
129 expose:
130 - 6969
131 - 9696
132 volumes:
133 - ./config/drools-apps/custom:/tmp/policy-install/config:ro
134 - ./config/drools-apps/custom/feature-lifecycle.properties:/opt/app/policy/features/lifecycle/config/feature-lifecycle.properties:ro
135 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
136 env_file:
137 - config/drools-apps/env/base.conf
138 - config/drools-apps/env/feature-healthcheck.conf
139 - config/drools-apps/env/feature-pooling-dmaap.conf
140 entrypoint: /opt/app/policy/bin/wait_for_port.sh
141 command: [
142 '-c', '/opt/app/policy/bin/pdpd-cl-entrypoint.sh boot',
143 'mariadb', '3306',
RehanRazac650c1e2021-06-04 16:18:09 +0200144 'onap-dmaap', '3904',
RehanRazacafa3672021-06-02 17:19:07 +0200145 'pap', '6969'
RehanRazac5fbfd02021-05-24 18:00:49 +0200146 ]
147 apex-pdp:
RehanRaza20e8eef2021-10-21 16:38:36 +0200148 image: nexus3.onap.org:10001/onap/policy-apex-pdp:2.5.4
RehanRazac5fbfd02021-05-24 18:00:49 +0200149 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',
RehanRazac650c1e2021-06-04 16:18:09 +0200165 'onap-dmaap', '3904',
RehanRazac5fbfd02021-05-24 18:00:49 +0200166 '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',
RehanRazac650c1e2021-06-04 16:18:09 +0200186 'onap-dmaap', '3904',
RehanRazac5fbfd02021-05-24 18:00:49 +0200187 'pap', '6969',
188 'apex-pdp', '6969'
189 ]
RehanRazaa5c520f2021-07-15 14:53:03 +0200190volumes:
191 db-vol: