Added docker-compose ranpm
[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     command: [
43       "sh", "-c",
44       "bin/kafka-server-start.sh /tmp/kafka/strimzi.properties"
45     ]
46     environment:
47       LOG_DIR: /tmp/logs
48     depends_on:
49       - zookeeper-1
50     ports:
51       - "9092:9092"
52       - "9097:9097"
53     labels:
54       - "ranpm=yes"
55     volumes:
56       - ./config/kafka/strimzi.properties:/tmp/kafka/strimzi.properties
57
58   redpanda:
59     container_name: redpanda-console
60     image: ${REDPANDA_IMAGE}
61     restart: on-failure
62     hostname: redpanda-console
63     ports:
64     - "8780:8080"
65     depends_on:
66       - kafka-1
67     environment:
68       KAFKA_BROKERS: kafka-1:9092
69     labels:
70       - "ranpm=yes"
71
72   message-router:
73     container_name: message-router
74     image: ${DMAAP_IMAGE}
75     ports:
76       - 3904:3904
77       - 3905:3905
78     environment:
79       enableCadi: 'false'
80     volumes:
81       - ./config/dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
82       - ./config/dmaap/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
83     depends_on:
84       - zookeeper-1
85       - kafka-1
86     labels:
87       - "ranpm=yes"
88
89   ves-collector:
90     image: ${VES_COLLECTOR_IMAGE}
91     container_name: ves-collector
92     environment:
93       DMAAPHOST: message-router
94     ports:
95       - 8080:8080
96       - 8443:8443
97     volumes:
98       - ./config/ves-collector/collector.properties:/opt/app/VESCollector/etc/collector.properties
99       - ./config/ves-collector/ves-dmaap-config.json:/opt/app/VESCollector/etc/ves-dmaap-config.json
100     labels:
101       - "ranpm=yes"
102
103   ics:
104     image: ${ICS_IMAGE}
105     container_name: ics
106     volumes:
107     - ./config/ics/application.yaml:/opt/app/information-coordinator-service/config/application.yaml
108     ports:
109     - 8083:8083
110     - 8434:8434
111     labels:
112       - "ranpm=yes"
113
114   minio:
115     image: ${MINIO_IMAGE}
116     container_name: minio-server
117     command: server /data --console-address ":9001"
118     environment:
119       MINIO_ROOT_USER: admin
120       MINIO_ROOT_PASSWORD: adminadmin
121     ports:
122     - 9000:9000
123     - 9001:9001
124     labels:
125       - "ranpm=yes"
126     volumes:
127     - /tmp/minio-test/0:/data