CI: Add SonarCloud scan GHA workflow
[nonrtric/plt/ranpm.git] / docker-proj / docker-compose-k1.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 version: '3.0'
19 networks:
20   default:
21     external: true
22     name: nonrtric-docker-net
23
24 services:
25   zookeeper-1:
26     image: ${STRIMZI_IMAGE}
27     command: [
28         "sh", "-c",
29         "bin/zookeeper-server-start.sh config/zookeeper.properties"
30       ]
31     ports:
32       - '2181:2181'
33     environment:
34       ZOOKEEPER_CLIENT_PORT: 2181
35       ZOOKEEPER_TICK_TIME: 2000
36       LOG_DIR: /tmp/logs
37     labels:
38       - "ranpm=yes"
39
40   kafka-1:
41     image: ${STRIMZI_IMAGE}
42     container_name: common-kafka-1-1
43     command: [
44       "sh", "-c",
45       "bin/kafka-server-start.sh /tmp/kafka/strimzi.properties"
46     ]
47     environment:
48       LOG_DIR: /tmp/logs
49     depends_on:
50       - zookeeper-1
51     ports:
52       - "9092:9092"
53       - "9097:9097"
54     labels:
55       - "ranpm=yes"
56     volumes:
57       - ./config/kafka/strimzi.properties:/tmp/kafka/strimzi.properties
58
59   redpanda:
60     container_name: redpanda-console
61     image: ${REDPANDA_IMAGE}
62     restart: on-failure
63     hostname: redpanda-console
64     ports:
65     - "8780:8080"
66     depends_on:
67       - kafka-1
68     environment:
69       KAFKA_BROKERS: kafka-1:9092
70     labels:
71       - "ranpm=yes"
72
73   message-router:
74     container_name: message-router
75     image: ${DMAAP_IMAGE}
76     ports:
77       - 3904:3904
78       - 3905:3905
79     environment:
80       enableCadi: 'false'
81     volumes:
82       - ./config/dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
83       - ./config/dmaap/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
84     depends_on:
85       - zookeeper-1
86       - kafka-1
87     labels:
88       - "ranpm=yes"
89
90   ves-collector:
91     image: ${VES_COLLECTOR_IMAGE}
92     container_name: ves-collector
93     environment:
94       DMAAPHOST: message-router
95     ports:
96       - 8080:8080
97       - 8443:8443
98     volumes:
99       - ./config/ves-collector/collector.properties:/opt/app/VESCollector/etc/collector.properties
100       - ./config/ves-collector/ves-dmaap-config.json:/opt/app/VESCollector/etc/ves-dmaap-config.json
101     labels:
102       - "ranpm=yes"
103
104   ics:
105     image: ${ICS_IMAGE}
106     container_name: ics
107     volumes:
108     - ./config/ics/application.yaml:/opt/app/information-coordinator-service/config/application.yaml
109     ports:
110     - 8083:8083
111     - 8434:8434
112     labels:
113       - "ranpm=yes"
114
115   minio:
116     image: ${MINIO_IMAGE}
117     container_name: minio-server
118     command: server /data --console-address ":9001"
119     environment:
120       MINIO_ROOT_USER: admin
121       MINIO_ROOT_PASSWORD: adminadmin
122     ports:
123     - 9000:9000
124     - 9001:9001
125     labels:
126       - "ranpm=yes"
127     volumes:
128     - /tmp/minio-test/0:/data
129
130   nonrtric-gateway:
131     image: ${NONRTRIC_GATEWAY_IMAGE}
132     container_name: nonrtricgateway
133     depends_on:
134       - ics
135     ports:
136     - 9098:9090
137     volumes:
138     - ./config/ngw/application.yaml:/opt/app/nonrtric-gateway/config/application.yaml
139     labels:
140       - "ranpm=yes"
141
142   control-panel:
143     image: ${CONTROL_PANEL_IMAGE}
144     container_name: controlpanel
145     depends_on:
146       - nonrtric-gateway
147     ports:
148     - 8088:8080
149     volumes:
150     - ./config/control-panel/nginx.conf:/etc/nginx/nginx.conf
151     labels:
152       - "ranpm=yes"