blob: 676ffa2d4e8fc90f1bbbe6081d6fc4669f33d48d [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
19services:
20 policy-clamp-runtime-acm-replica:
21 image: ${CONTAINER_LOCATION}onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION}
22 hostname: policy-clamp-runtime-acm
23 depends_on:
24 - policy-db-migrator-clamp
25 - kafka
26 - jaeger
27 - policy-clamp-ac-http-ppnt-replica
28 - policy-clamp-ac-k8s-ppnt-replica
29 - policy-clamp-ac-pf-ppnt-replica
30 - policy-clamp-ac-sim-ppnt
31 - apex-pdp
32 expose:
33 - 6969
34 deploy:
35 mode: replicated
36 replicas: ${REPLICAS}
37 environment:
38 OTEL_SERVICE_NAME: acm-r
39 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
40 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
41 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
42 # Tracing can be configured for grpc or http - default is http
43 #OTEL_EXPORTER_OTLP_PROTOCOL: grpc
44 #OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: grpc
45 #OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
46 volumes:
47 - ./config/clamp/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml
48 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
49 - ./config/clamp/acm-runtime.sh:/opt/app/policy/clamp/bin/acm-runtime.sh:rw
50 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
51 entrypoint: /opt/app/policy/bin/wait_for_port.sh
52 command: [
53 '-c', './acm-runtime.sh',
54 'mariadb', '3306',
55 'kafka', '9092',
56 'policy-clamp-ac-http-ppnt', '6969',
57 'policy-clamp-ac-k8s-ppnt', '6969',
58 'policy-clamp-ac-pf-ppnt', '6969',
59 'policy-clamp-ac-sim-ppnt', '6969'
60 ]
61 policy-clamp-ac-http-ppnt-replica:
62 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-http-ppnt:${POLICY_CLAMP_PPNT_VERSION}
63 hostname: policy-clamp-ac-http-ppnt
64 depends_on:
65 - kafka
66 - jaeger
67 expose:
68 - 6969
69 deploy:
70 mode: replicated
71 replicas: ${REPLICAS}
72 environment:
73 OTEL_SERVICE_NAME: http-ppnt
74 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
75 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
76 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
77 volumes:
78 - ./config/clamp/HttpParticipantParameters.yaml:/opt/app/policy/clamp/etc/HttpParticipantParameters.yaml
79 - ./config/clamp/http-participant.sh:/opt/app/policy/clamp/bin/http-participant.sh:rw
80 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
81 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
82 entrypoint: /opt/app/policy/bin/wait_for_port.sh
83 command: [
84 '-c', './http-participant.sh',
85 'kafka', '9092'
86 ]
87 policy-clamp-ac-k8s-ppnt-replica:
88 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-k8s-ppnt:${POLICY_CLAMP_PPNT_VERSION}
89 hostname: policy-clamp-ac-k8s-ppnt
90 depends_on:
91 - kafka
92 - jaeger
93 environment:
94 OTEL_SERVICE_NAME: k8s-ppnt
95 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
96 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
97 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
98 expose:
99 - 6969
100 deploy:
101 mode: replicated
102 replicas: ${REPLICAS}
103 volumes:
104 - ./config/clamp/KubernetesParticipantParameters.yaml:/opt/app/policy/clamp/etc/KubernetesParticipantParameters.yaml
105 - ./config/clamp/kubernetes-participant.sh:/opt/app/policy/clamp/bin/kubernetes-participant.sh:rw
106 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
107 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
108 entrypoint: /opt/app/policy/bin/wait_for_port.sh
109 command: [
110 '-c', './kubernetes-participant.sh',
111 'kafka', '9092'
112 ]
113 policy-clamp-ac-pf-ppnt-replica:
114 image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-pf-ppnt:${POLICY_CLAMP_PPNT_VERSION}
115 hostname: policy-clamp-ac-pf-ppnt
116 depends_on:
117 - kafka
118 - jaeger
119 expose:
120 - 6969
121 deploy:
122 mode: replicated
123 replicas: ${REPLICAS}
124 environment:
125 OTEL_SERVICE_NAME: policy-ppnt
126 OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
127 OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
128 OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
129 volumes:
130 - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/etc/PolicyParticipantParameters.yaml:ro
131 - ./config/clamp/policy-participant.sh:/opt/app/policy/clamp/bin/policy-participant.sh:rw
132 - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
133 - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
134 entrypoint: /opt/app/policy/bin/wait_for_port.sh
135 command: [
136 '-c', './policy-participant.sh',
137 'kafka', '9092'
138 ]
139 nginx:
140 image: ${CONTAINER_LOCATION}library/nginx:latest
141 volumes:
142 - ./config/nginx/nginx-acm.conf:/etc/nginx/nginx.conf:ro
143 depends_on:
144 - policy-clamp-runtime-acm-replica
145 ports:
146 - ${ACM_PORT}:${ACM_PORT}
147