---
version: "2"
services:
influxdb:
container_name: influxdb
env_file:
- ./docker/environment
image: influxdb:1.7.10
ports:
- "8083:8083"
- "8086:8086"
volumes:
- ./docker/ssl:/etc/ssl/self-signed
- influxdb-storage:/var/lib/influxdb
restart: always
grafana:
container_name: grafana
image: grafana/grafana:7.3.7
- grafana-storage:/var/lib/grafana
- "3000:3000"
links:
- "influxdb:influxdb"
telegraf:
container_name: telegraf
entrypoint: telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
image: telegraf:1.19.2
- ./docker/telegraf.conf:/etc/telegraf/telegraf.conf
- ./telegraf:/etc/telegraf/telegraf.d
influxdb-storage:
driver: local
grafana-storage: