-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.28 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
version: '3.8'
services:
emqx:
image: emqx:5
container_name: emqx-demo
ports:
- 18084:18084
- 18083:18083
- 1883:1883
- 8083:8083
- 8084:8084
- 8883:8883
environment:
EMQX_API_KEY__BOOTSTRAP_FILE: '"/opt/emqx/data/bootstrap-api"'
EMQX_DASHBOARD__LISTENERS__HTTPS__BIND: 18084
volumes:
- ./bootstrap-api:/opt/emqx/data/bootstrap-api
healthcheck:
test: ["CMD", "emqx", "ping"]
interval: 30s
timeout: 10s
retries: 3
emqx-exporter:
depends_on:
- emqx
image: emqx/emqx-exporter:0.2.3
container_name: exporter-demo
ports:
- 8085:8085
volumes:
- ./emqx-exporter.config.yaml:/usr/local/emqx-exporter/bin/config.yaml
prometheus:
image: prom/prometheus
container_name: prometheus-demo
ports:
- 9090:9090
volumes:
- ./prometheus-emqx5.yaml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
container_name: grafana-demo
ports:
- 3000:3000
volumes:
- ../../grafana-dashboard/template/emqx-enterprise-5:/grafana-dashboard-definitions
- ./grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./grafana-datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml