Skip to content

Instantly share code, notes, and snippets.

@mafonso
Created January 9, 2021 17:44
Show Gist options
  • Save mafonso/a7cc94df145c32cb3aa2e67e58fd5937 to your computer and use it in GitHub Desktop.
Save mafonso/a7cc94df145c32cb3aa2e67e58fd5937 to your computer and use it in GitHub Desktop.
Metrics Dashboard Stack
version: "2"
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
links:
- influxdb
networks:
- monitoring
volumes:
- grafana-volume:/var/lib/grafana
environment:
GF_INSTALL_PLUGINS: grafana-worldmap-panel,alexandra-trackmap-panel
chronograf:
image: chronograf
container_name: chronograf
volumes:
- chronograf_volume:/var/lib/chronograf
ports:
- 8087:8888
links:
- influxdb
networks:
- monitoring
restart: always
influxdb:
image: influxdb
container_name: influxdb
restart: always
ports:
- 8086:8086
networks:
- monitoring
volumes:
- influxdb-volume:/var/lib/influxdb
environment:
- INFLUXDB_DB=telegraf
- INFLUXDB_USER=telegraf
telegraf:
image: telegraf
container_name: telegraf
restart: always
networks:
- monitoring
links:
- influxdb
environment:
HOST_PROC: /rootfs/proc
HOST_SYS: /rootfs/sys
HOST_ETC: /rootfs/etc
volumes:
- /share/Docker/Volumes/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
networks:
monitoring:
volumes:
grafana-volume:
external: false
influxdb-volume:
external: false
chronograf_volume:
external: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment