43 lines
933 B
YAML
43 lines
933 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
mosquitto:
|
|
image: eclipse-mosquitto:latest
|
|
restart: always
|
|
volumes:
|
|
- /home/joerg/nbit-mqtt/config:/mosquitto/config
|
|
- /home/joerg/nbit-mqtt/data:/mosquitto/data
|
|
- /home/joerg/nbit-mqtt/log:/mosquitto/log
|
|
environment:
|
|
TZ: Europe/Zurich
|
|
network_mode: host
|
|
tty: true
|
|
|
|
mqtt2log:
|
|
build: mqtt2log-build
|
|
tty: true
|
|
volumes:
|
|
- /home/joerg/nbit-mqtt/data-shellies:/data
|
|
|
|
mqtt2prometheus:
|
|
image: ghcr.io/hikhvar/mqtt2prometheus:latest
|
|
command:
|
|
- /mqtt2prometheus
|
|
- -log-level
|
|
- debug
|
|
- -config
|
|
- /config.yaml
|
|
ports:
|
|
- 9641:9641
|
|
volumes:
|
|
- type: bind
|
|
source: ./mqtt2prometheus-config.yaml
|
|
target: /config.yaml
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
volumes:
|
|
- type: bind
|
|
source: ./prometheus.yml
|
|
target: /etc/prometheus/prometheus.yml
|