This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
forked from pborgesEdgeX/Video-RTSP-Streaming-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (80 loc) · 2.48 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper:3.4.6
container_name: zookeeper
restart: always #Ensures that intermittent failures in the Docker environment do not result in unnecessary failures of the service.
networks:
- dockerNet
ports:
- "2181:2181"
kafka:
build: ./kafka-docker/
container_name: kafka
restart: always
networks:
- dockerNet
ports:
- "9092:9092"
expose:
- "9093"
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
producer:
build: ./producer/.
image: producer
container_name: producer
restart: always
environment:
- TOPICNAME=test
- KAFKAPORT=kafka:9093
- RTSPLINK=rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream
# Image format = RGBA, uint8
# Num of channels = 3
# Total pixels = 38400
# Image size = [160 240]
# Num of rows = 160
# Num of cols = 240
networks:
- dockerNet
# To ensure that the containers in different docker-compose files communicate with each other, we place them on the same network. The complete network name is 'zookeeper_dockerNet'. It is derived by joining the name of the folder from which the network originates (i.e., zookeeper) and the name of the network (i.e., dockerNet).
producer2:
build: ./producer_2/.
image: producer2
container_name: producer2
restart: always
environment:
- TOPICNAME=test
- KAFKAPORT=kafka:9093
- RTSPLINK=rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream
# Image format = RGBA, uint8
# Num of channels = 3
# Total pixels = 38400
# Image size = [160 240]
# Num of rows = 160
# Num of cols = 240
networks:
- dockerNet
# consumer:
# build: ./consumer/.
# image: consumer
# container_name: consumer
# restart: always
# environment:
# - KAFKAPORT=kafka:9093
# - TOPICNAME=test
# - ZOOKEEPERPORT=zookeeper:2181
# - CONSUMERGROUP=consumerGroup_1
# ports:
# - "5001:5001"
# networks:
# - dockerNet
networks:
dockerNet:
driver: bridge