60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
version: '3'
|
|
services:
|
|
influxdb:
|
|
image: influxdb
|
|
container_name: influxdb
|
|
expose:
|
|
- "8086"
|
|
volumes:
|
|
- influxdb-data:/var/lib/influxdb2
|
|
restart: unless-stopped
|
|
labels:
|
|
caddy: influx.dmeiburg.de
|
|
caddy.reverse_proxy: "{{upstreams 8086}}"
|
|
|
|
grafana:
|
|
image: grafana/grafana
|
|
container_name: grafana
|
|
expose:
|
|
- "3000"
|
|
depends_on:
|
|
- influxdb
|
|
volumes:
|
|
- grafana-data:/var/lib/grafana
|
|
restart: unless-stopped
|
|
environment:
|
|
- GF_SERVER_ROOT_URL=https://grafana.dmeiburg.de
|
|
- GF_INSTALL_PLUGINS=grafana-clock-panel
|
|
labels:
|
|
caddy: grafana.dmeiburg.de
|
|
caddy.reverse_proxy: "{{upstreams 3000}}"
|
|
|
|
mosquitto:
|
|
image: eclipse-mosquitto:latest
|
|
container_name: mosquitto
|
|
restart: unless-stopped
|
|
ports:
|
|
- "1883:1883"
|
|
- "9001:9001"
|
|
volumes:
|
|
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
|
|
|
|
telegraf:
|
|
image: telegraf
|
|
container_name: telegraf
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
depends_on:
|
|
- mosquitto
|
|
- influxdb
|
|
|
|
volumes:
|
|
influxdb-data:
|
|
grafana-data:
|
|
|
|
networks:
|
|
default:
|
|
name: caddy
|
|
external: true
|