-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
45 lines (42 loc) · 1.06 KB
/
docker-compose.yaml
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
version: "3.7"
services:
gateway:
image: node:22-alpine
volumes:
- ./:/app
working_dir: /app
command:
- node
- -r
- ts-node/register
- gateway
depends_on:
- mosquitto
mosquitto:
image: eclipse-mosquitto
volumes:
- ./mosquitto/config/:/mosquitto/config
- ./mosquitto/log/:/mosquitto/log
- ./mosquitto/data/:/mosquitto/data
ports:
- "1883:1883"
prometheus:
image: prom/prometheus:latest
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=1y'
- '--web.enable-lifecycle'
volumes:
- ./prometheus/data:/prometheus:rw
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- gateway
grafana:
image: grafana/grafana
volumes:
- ./grafana/data:/var/lib/grafana:rw
depends_on:
- prometheus