-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (93 loc) · 2.09 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
services:
mqtt:
image: eclipse-mosquitto
ports:
- "1883:1883" # Port MQTT
- "9001:9001" # Port WebSocket (optional)
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- mosquitto_data:/mosquitto/data
- mosquitto_log:/mosquitto/log
networks:
- my-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.3
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false # Disable security
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9200:9200"
volumes:
- es_data:/usr/share/elasticsearch/data
networks:
- my-network
logstash:
image: docker.elastic.co/logstash/logstash:8.15.3
container_name: logstash
environment:
- xpack.monitoring.enabled=false # Disable monitoring
ports:
- "5044:5044"
volumes:
- ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf
depends_on:
- mqtt
- elasticsearch
networks:
- my-network
mqtt_to_logstash:
build: ./mqtt_to_logstash
container_name: mqtt_to_logstash
depends_on:
- mqtt
- logstash
command: python /app/mqtt_to_logstash.py
networks:
- my-network
kibana:
image: docker.elastic.co/kibana/kibana:8.15.3
container_name: kibana
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- xpack.security.enabled=false # Disable security
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- my-network
web:
build: ./web
ports:
- "3000:3000"
networks:
- my-network
volumes:
- ./web:/app
depends_on:
- mqtt
ngrok:
image: ngrok/ngrok:latest
command:
- "start"
- "--all"
- "--config"
- "/etc/ngrok.yml"
ports:
- "4040:4040"
networks:
- my-network
volumes:
- ./ngrok.yml:/etc/ngrok.yml
depends_on:
- web
- mqtt
networks:
my-network:
driver: bridge
volumes:
mosquitto_data:
mosquitto_log:
es_data: