76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
version: '3.7'
|
|
|
|
volumes:
|
|
smarthome-monitoring-influxdb-data:
|
|
driver: local
|
|
smarthome-monitoring-influxdb-config:
|
|
driver: local
|
|
#smarthome-monitoring-chronograf-data:
|
|
# driver: local
|
|
smarthome-monitoring-telegraf-data:
|
|
driver: local
|
|
smarthome-monitoring-grafana-data:
|
|
driver: local
|
|
|
|
services:
|
|
|
|
influxdb:
|
|
image: influxdb:latest
|
|
container_name: smarthome-monitoring-influxdb
|
|
volumes:
|
|
- smarthome-monitoring-influxdb-data:/var/lib/influxdb2
|
|
- smarthome-monitoring-influxdb-config:/etc/influxdb2
|
|
restart: unless-stopped
|
|
environment:
|
|
INFLUXDB_REPORTING_DISABLED: "true"
|
|
INFLUXDB_ADMIN_ENABLED: "true"
|
|
INFLUXDB_DB: "mydb"
|
|
ports:
|
|
- "8086:8086"
|
|
- "8082:8082"
|
|
- "8089:8089"
|
|
|
|
#kapacitor:
|
|
# image: kapacitor:latest
|
|
# container_name: smarthome-monitoring-kapacitor
|
|
# environment:
|
|
# KAPACITOR_HOSTNAME: smarthome-monitoring-kapacitor
|
|
# KAPACITOR_INFLUXDB_0_URLS_0: http://smarthome-monitoring-influxdb:8086
|
|
# ports:
|
|
# - "9092:9092"
|
|
|
|
#chronograf:
|
|
# image: chronograf:latest
|
|
# container_name: smarthome-monitoring-chronograf
|
|
# volumes:
|
|
# - smarthome-monitoring-chronograf-data:/var/lib/chronograf
|
|
# ports:
|
|
# - "8888:8888"
|
|
# environment:
|
|
# INFLUXDB_URL: http://smarthome-monitoring-influxdb:8086
|
|
# KAPACITOR_URL: http://smarthome-monitoring-kapacitor:9092
|
|
# REPORTING_DISABLED: "true"
|
|
# depends_on:
|
|
# - influxdb
|
|
# - kapacitor
|
|
|
|
telegraf:
|
|
image: telegraf:latest
|
|
container_name: smarthome-monitoring-telegraf
|
|
volumes:
|
|
- smarthome-monitoring-telegraf-data:/etc/telegraf
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
restart: unless-stopped
|
|
environment:
|
|
HOSTNAME: smarthome-monitoring-telegraf
|
|
|
|
grafana:
|
|
image: grafana/grafana-oss:latest
|
|
container_name: smarthome-monitoring-grafana
|
|
ports:
|
|
- "3091:3000"
|
|
volumes:
|
|
- smarthome-monitoring-grafana-data:/var/lib/grafana
|
|
restart: unless-stopped
|
|
|