Merge "Added information in the GET consumer job-status"
[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       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         'onap-dmaap', '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         'onap-dmaap', '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         'onap-dmaap', '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         'onap-dmaap', '3904',
141         'pap', '6969'
142         ]
143    apex-pdp:
144       image: nexus3.onap.org:10003/onap/policy-apex-pdp:latest
145       container_name: policy-apex-pdp
146       depends_on:
147        - mariadb
148        - pap
149       hostname: policy-apex-pdp
150       expose:
151        - 6969
152        - 23324
153       volumes:
154        - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
155        - ./config/ks.jks:/opt/app/policy/apex-pdp/etc/ssl/policy-keystore.jks:ro
156        - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
157       entrypoint: /opt/app/policy/bin/wait_for_port.sh
158       command: [
159         '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
160         'mariadb', '3306',
161         'onap-dmaap', '3904',
162         'pap', '6969'
163         ]
164    distribution:
165       image: nexus3.onap.org:10001/onap/policy-distribution:2.5.2
166       container_name: policy-distribution
167       depends_on:
168        - mariadb
169        - api
170        - pap
171        - apex-pdp
172       hostname: policy-distribution
173       volumes:
174        - ./config/distribution/defaultConfig.json:/opt/app/policy/distribution/etc/defaultConfig.json:ro
175        - ./config/ks.jks:/opt/app/policy/distribution/etc/ssl/policy-keystore.jks:ro
176        - ./distribution/config/temp/:/opt/app/policy/distribution/etc/temp/:ro
177        - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
178       entrypoint: /opt/app/policy/bin/wait_for_port.sh
179       command: [
180         '-c', './policy-dist.sh',
181         'mariadb', '3306',
182         'onap-dmaap', '3904',
183         'pap', '6969',
184         'apex-pdp', '6969'
185         ]