Jafner.net/docker_config/grafana-stack/docker-compose.yml

63 lines
1.6 KiB
YAML
Raw Normal View History

2021-03-01 11:45:53 -08:00
version: '3'
services:
influxdb:
image: influxdb:latest
container_name: influxdb
restart: unless-stopped
networks:
- grafana
ports:
- 8086:8086
- 8089:8089/udp
volumes:
- ./influxdb.conf:/etc/influxdb/influxdb.conf:ro
- "${DOCKER_DATA}/influxdb:/var/lib/influxdb"
2021-03-01 11:45:53 -08:00
environment:
- TZ=America/Los_Angeles
- INFLUXDB_HTTP_ENABLED=true
- INFLUXDB_DB=host
command: -config /etc/influxdb/influxdb.conf
telegraf:
image: telegraf:latest
container_name: telegraf
restart: unless-stopped
2021-08-02 23:20:43 -07:00
depends_on:
- influxdb
2021-03-01 11:45:53 -08:00
networks:
- grafana
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
2021-08-02 23:20:43 -07:00
- ./scripts/.forgetps.json:/.forgetps.json:ro
2021-03-01 11:45:53 -08:00
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro
grafana:
image: mbarmem/grafana-render:latest
container_name: grafana
restart: unless-stopped
2021-08-02 23:20:43 -07:00
depends_on:
- influxdb
- telegraf
2021-03-01 11:45:53 -08:00
networks:
- grafana
- web
user: "0"
volumes:
- ./grafana:/var/lib/grafana
- ./grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource,grafana-worldmap-panel,grafana-piechart-panel
labels:
- traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`)
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt
- traefik.http.routers.grafana.middlewares=authelia@file
2021-03-01 11:45:53 -08:00
networks:
grafana:
web:
external: true