Enable sample SME invoker to query dicovered endpoint
[nonrtric.git] / docker-compose / docker-compose-policy-framework / docker-compose.yml
1 #
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 #
20 version: '2'
21 networks:
22   default:
23     driver: bridge
24     name: nonrtric-docker-net
25 services:
26    mariadb:
27       image: nexus3.onap.org:10001/mariadb:10.5.8
28       container_name: mariadb
29       hostname: mariadb
30       volumes:
31        - 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"
37       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:
46        - "6869:6969"
47       expose:
48        - 6869
49       volumes:
50        - ./config/api/defaultConfig.json:/opt/app/policy/api/etc/defaultConfig.json:ro
51        - ./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',
77         'onap-dmaap', '3904',
78         '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',
97         'onap-dmaap', '3904',
98         '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',
119         'onap-dmaap', '3904'
120         ]
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',
144         'onap-dmaap', '3904',
145         'pap', '6969'
146         ]
147    apex-pdp:
148       image: nexus3.onap.org:10001/onap/policy-apex-pdp:2.5.4
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         'onap-dmaap', '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         'onap-dmaap', '3904',
187         'pap', '6969',
188         'apex-pdp', '6969'
189         ]
190 volumes:
191   db-vol: