This repository has been archived by the owner on Feb 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
144 lines (133 loc) · 3.26 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
version: "3.6"
networks:
ttn:
volumes:
catalog-data:
grafana-data:
services:
grafana:
image: grafana/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=not_the_default_one
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource,grafana-piechart-panel,grafana-worldmap-panel
user: "104"
volumes:
- type: volume
source: grafana-data
target: /var/lib/grafana
- type: bind
source: ./grafana/KiotlogDataSource.yml
target: /etc/grafana/provisioning/datasources/KiotlogDataSource.yml
- type: bind
source: ./grafana/KiotlogDashboardProvider.yml
target: /etc/grafana/provisioning/dashboards/KiotlogDashboardProvider.yml
- type: bind
source: ./grafana/KiotlogDashboardDemo.json
target: /var/lib/kiotlog/KiotlogDashboardDemo.json
networks:
ttn:
aliases:
- grafana
ports:
- "3000:3000"
broker:
image: emqx/emqx
environment:
- EMQ_LOG__CONSOLE__LEVEL=error
- EMQ_ADMIN_PASSWORD=not_the_default_one
- EMQ_LOADED_PLUGINS="emq_recon,emq_modules,emq_retainer,emq_dashboard,emq_sn"
- EMQ_MQTT__SN__PORT=2883
- EMQ_MQTT__SN__ENABLE_STATS=on
networks:
ttn:
aliases:
- broker
ports:
- "1883:1883"
- "2883:2883/udp"
# - "8083:8083"
# - "8883:8883"
# - "8084:8084"
- "18083:18083"
mqtt-bridge:
image: eclipse-mosquitto
depends_on:
- broker
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
networks:
ttn:
aliases:
- mqtt-bridge
catalog:
build: ./postgres
image: kiotlog/catalog
networks:
ttn:
aliases:
- catalog
- postgres
ports:
- 127.0.0.1:7433:5432
volumes:
- type: volume
source: catalog-data
target: /var/lib/postgresql/data
command: -c "log_statement=all" -c "shared_preload_libraries= pg_stat_statements" -c "pg_stat_statements.track=all"
api:
image: kiotlog/klapi
networks:
ttn:
aliases:
- api
ports:
- 8888:8888
environment:
- host=0.0.0.0
- port=8888
- pguser=kl_webapi
- pgpass=KlW3b4p1
- pghost=catalog
- pgport=5432
- pgdb=trmpln
webui:
image: kiotlog/webui
networks:
ttn:
aliases:
- webui
ports:
- 80:80
klhr:
image: kiotlog/httpreceiver
depends_on:
- catalog
- broker
networks:
ttn:
aliases:
- klhr
- httpreceiver
ports:
- 8080:8080
command: --host 0.0.0.0 --mqttbroker broker 1883 --postgres kl_httpreceiver KlR3c3iv3r catalog 5432 trmpln
decoder:
image: kiotlog/decoder
depends_on:
- catalog
- broker
networks:
ttn:
aliases:
- decoder
command: --mqttbroker broker 1883 --postgres kl_decoder KlD3c0d3r catalog 5432 trmpln --topics /+/+/devices/+/up
klsn:
image: kiotlog/klsnreceiver
depends_on:
- catalog
- broker
networks:
ttn:
aliases:
- klsn
command: --mqttbroker broker 1883 --topics "/klsn/+/+" "/klsnts/+/+" --postgres kl_snreceiver KLSnR3c3iv3r catalog 5432 trmpln