blob: ee6679b2d25e963fe0b8369e0f9f548c8f05af06 [file] [log] [blame]
rameshiyer27f851a5e2024-07-02 09:16:56 +00001#
2# ===========LICENSE_START====================================================
3# Copyright (C) 2024 Nordix Foundation.
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#
18
adheli.tavaresd802fd92024-08-15 12:39:19 +010019include:
20 - compose.common.yml
21 - compose.postgres.yml
22
rameshiyer27f851a5e2024-07-02 09:16:56 +000023services:
adheli.tavaresd802fd92024-08-15 12:39:19 +010024 api:
25 image: ${CONTAINER_LOCATION}onap/policy-api:${POLICY_API_VERSION}
26 container_name: policy-api
27 hostname: policy-api
28 depends_on:
29 - policy-db-migrator
30 ports:
31 - ${API_PORT}:6969
32 volumes:
33 - ./config/api/apiParameters.yaml:/opt/app/policy/api/etc/apiParameters.yaml:ro
34 - ./config/api/logback.xml:/opt/app/policy/api/etc/logback.xml:ro
35 - ./wait_for_port.sh:/opt/app/policy/api/bin/wait_for_port.sh:ro
36 entrypoint: ./wait_for_port.sh
37 command: [
38 '-c', './policy-api.sh',
39 'policy-db-migrator', '6824'
40 ]
41
42 pap:
43 image: ${CONTAINER_LOCATION}onap/policy-pap:${POLICY_PAP_VERSION}
44 container_name: policy-pap
45 hostname: policy-pap
46 depends_on:
47 - api
48 - kafka
49 ports:
50 - ${PAP_PORT}:6969
51 volumes:
52 - ./config/pap/papParameters.yaml:/opt/app/policy/pap/etc/papParameters.yaml:ro
53 - ./config/clamp/groups.json:/opt/app/policy/pap/etc/mounted/groups.json:ro
54 - ./config/pap/logback.xml:/opt/app/policy/pap/etc/logback.xml:ro
55 - ./wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
56 entrypoint: ./wait_for_port.sh
57 command: [
58 '-c', './policy-pap.sh',
59 'api', '6969',
60 'kafka', '9092'
61 ]
62
63 apex-pdp:
64 image: ${CONTAINER_LOCATION}onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
65 container_name: policy-apex-pdp
66 hostname: policy-apex-pdp
67 depends_on:
68 - simulator
69 - kafka
70 - pap
71 ports:
72 - ${APEX_PORT}:6969
73 - ${APEX_EVENTS_PORT}:23324
74 volumes:
75 - ./config/apex-pdp/OnapPfConfig.json:/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json:ro
76 - ./config/apex-pdp/logback.xml:/opt/app/policy/apex-pdp/etc/logback.xml:ro
77 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
78 entrypoint: /opt/app/policy/bin/wait_for_port.sh
79 command: [
80 '-c', '/opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json',
81 'kafka', '9092',
82 'pap', '6969'
83 ]
84
rameshiyer27f851a5e2024-07-02 09:16:56 +000085 policy-clamp-runtime-acm-replica:
86 image: ${CONTAINER_LOCATION}onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
87 hostname: policy-clamp-runtime-acm
88 depends_on:
adheli.tavaresd802fd92024-08-15 12:39:19 +010089 - policy-db-migrator
90 - apex-pdp
rameshiyer27f851a5e2024-07-02 09:16:56 +000091 - kafka
92 - jaeger
93 - policy-clamp-ac-http-ppnt-replica
94 - policy-clamp-ac-k8s-ppnt-replica
95 - policy-clamp-ac-pf-ppnt-replica
96 - policy-clamp-ac-sim-ppnt
rameshiyer27f851a5e2024-07-02 09:16:56 +000097 expose:
98 - 6969
99 deploy:
100 mode: replicated
adheli.tavaresd802fd92024-08-15 12:39:19 +0100101 replicas: ${REPLICAS:-2}
rameshiyer27f851a5e2024-07-02 09:16:56 +0000102 environment:
103 OTEL_SERVICE_NAME: acm-r
104 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
105 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
106 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
107 # Tracing can be configured for grpc or http - default is http
108 #OTEL_EXPORTER_OTLP_PROTOCOL: grpc
109 #OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: grpc
110 #OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
111 volumes:
112 - ./config/clamp/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml
113 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
114 - ./config/clamp/acm-runtime.sh:/opt/app/policy/clamp/bin/acm-runtime.sh:rw
115 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
116 entrypoint: /opt/app/policy/bin/wait_for_port.sh
117 command: [
118 '-c', './acm-runtime.sh',
adheli.tavaresd802fd92024-08-15 12:39:19 +0100119 'apex-pdp', '6969',
rameshiyer27f851a5e2024-07-02 09:16:56 +0000120 'kafka', '9092',
121 'policy-clamp-ac-http-ppnt', '6969',
122 'policy-clamp-ac-k8s-ppnt', '6969',
123 'policy-clamp-ac-pf-ppnt', '6969',
124 'policy-clamp-ac-sim-ppnt', '6969'
125 ]
126 policy-clamp-ac-http-ppnt-replica:
127 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-http-ppnt:${POLICY_CLAMP_PPNT_VERSION}
128 hostname: policy-clamp-ac-http-ppnt
129 depends_on:
130 - kafka
131 - jaeger
132 expose:
133 - 6969
134 deploy:
135 mode: replicated
adheli.tavaresd802fd92024-08-15 12:39:19 +0100136 replicas: ${REPLICAS:-2}
rameshiyer27f851a5e2024-07-02 09:16:56 +0000137 environment:
138 OTEL_SERVICE_NAME: http-ppnt
139 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
140 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
141 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
142 volumes:
143 - ./config/clamp/HttpParticipantParameters.yaml:/opt/app/policy/clamp/etc/HttpParticipantParameters.yaml
144 - ./config/clamp/http-participant.sh:/opt/app/policy/clamp/bin/http-participant.sh:rw
145 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
146 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
147 entrypoint: /opt/app/policy/bin/wait_for_port.sh
148 command: [
149 '-c', './http-participant.sh',
150 'kafka', '9092'
151 ]
152 policy-clamp-ac-k8s-ppnt-replica:
153 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_PPNT_VERSION}
154 hostname: policy-clamp-ac-k8s-ppnt
155 depends_on:
156 - kafka
157 - jaeger
158 environment:
159 OTEL_SERVICE_NAME: k8s-ppnt
160 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
161 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
162 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
163 expose:
164 - 6969
165 deploy:
166 mode: replicated
adheli.tavaresd802fd92024-08-15 12:39:19 +0100167 replicas: ${REPLICAS:-2}
rameshiyer27f851a5e2024-07-02 09:16:56 +0000168 volumes:
169 - ./config/clamp/KubernetesParticipantParameters.yaml:/opt/app/policy/clamp/etc/KubernetesParticipantParameters.yaml
170 - ./config/clamp/kubernetes-participant.sh:/opt/app/policy/clamp/bin/kubernetes-participant.sh:rw
171 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
172 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
173 entrypoint: /opt/app/policy/bin/wait_for_port.sh
174 command: [
175 '-c', './kubernetes-participant.sh',
176 'kafka', '9092'
177 ]
178 policy-clamp-ac-pf-ppnt-replica:
179 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_PPNT_VERSION}
180 hostname: policy-clamp-ac-pf-ppnt
181 depends_on:
182 - kafka
183 - jaeger
184 expose:
185 - 6969
186 deploy:
187 mode: replicated
adheli.tavaresd802fd92024-08-15 12:39:19 +0100188 replicas: ${REPLICAS:-2}
rameshiyer27f851a5e2024-07-02 09:16:56 +0000189 environment:
190 OTEL_SERVICE_NAME: policy-ppnt
191 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
192 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
193 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
194 volumes:
195 - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/etc/PolicyParticipantParameters.yaml:ro
196 - ./config/clamp/policy-participant.sh:/opt/app/policy/clamp/bin/policy-participant.sh:rw
197 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
198 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
199 entrypoint: /opt/app/policy/bin/wait_for_port.sh
200 command: [
201 '-c', './policy-participant.sh',
202 'kafka', '9092'
203 ]
204 nginx:
205 image: ${CONTAINER_LOCATION}library/nginx:latest
206 volumes:
207 - ./config/nginx/nginx-acm.conf:/etc/nginx/nginx.conf:ro
208 depends_on:
209 - policy-clamp-runtime-acm-replica
210 ports:
211 - ${ACM_PORT}:${ACM_PORT}