-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
165 lines (150 loc) · 3.68 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
version: "3.8"
services:
## test stream: gst-launch-1.0 -v videotestsrc ! x264enc ! flvmux ! rtmpsink location='rtmp://172.23.0.2/WebRTCApp/test-101 live=1'
ant:
container_name: ant
restart: unless-stopped
build:
context: .docker/media_server
args:
- MongoDBServer=172.23.0.4
- MongoDBUsername=root
- MongoDBPassword=admin
- KAFKA_BROKER=172.23.0.7:9092
networks:
cloud_manager:
ipv4_address: 172.23.0.2
volumes:
- ./streams:/usr/local/antmedia/webapps/WebRTCApp/streams
- ant-data:/usr/local/antmedia
ports:
- 5080:5080
depends_on:
- kafka
- grafana
- logstash
- elasticsearch
- mongo
gstreamer:
container_name: gstreamer
restart: unless-stopped
build: .docker/gstreamer
networks:
cloud_manager:
ipv4_address: 172.23.0.3
working_dir: /start
command: bash -c "sleep infinity"
mongo:
container_name: mongo
image: mongo:latest
networks:
cloud_manager:
ipv4_address: 172.23.0.4
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=backup_db
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
kafka:
container_name: kafka
restart: unless-stopped
build: .docker/zk-kafka
networks:
cloud_manager:
ipv4_address: 172.23.0.7
ports:
- 9092:9092
- 29092:29092
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logstash:
container_name: logstash
restart: unless-stopped
image: docker.elastic.co/logstash/logstash:7.17.8
networks:
cloud_manager:
ipv4_address: 172.23.0.8
volumes:
- ./.docker/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
depends_on:
- kafka
- elasticsearch
elasticsearch:
container_name: elasticsearch
restart: unless-stopped
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.8
networks:
cloud_manager:
ipv4_address: 172.23.0.9
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
grafana:
container_name: grafana
restart: unless-stopped
image: grafana/grafana-oss:latest
networks:
cloud_manager:
ipv4_address: 172.23.0.10
ports:
- 3000:3000
depends_on:
- logstash
- elasticsearch
volumes:
- grafana-data:/var/lib/grafana
# used for development testing: topics=[ams-instance-stats, camera-<id>-warning]
## docker exec -it kafkacat kafkacat -b 172.23.0.7:9092 -L
## docker exec -it kafkacat kafkacat -b 172.23.0.7:9092 -t <topic> -C
## docker exec -it kafkacat kafkacat -b 172.23.0.7:9092 -t <topic> -P
kafkacat:
container_name: kafkacat
restart: unless-stopped
image: confluentinc/cp-kafkacat:latest
command: bash -c "sleep infinity"
networks:
cloud_manager:
ipv4_address: 172.23.0.16
volumes:
- /var/run/docker.sock:/var/run/docker.sock
server:
container_name: src
build: src
networks:
cloud_manager:
ipv4_address: 172.23.0.11
ports:
- 5000:5000
depends_on:
- ant
- mongo
networks:
cloud_manager:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.23.0.0/24
gateway: 172.23.0.1
volumes:
grafana-data:
elasticsearch-data:
mongo-data:
ant-data: