Skip to content

Instantly share code, notes, and snippets.

@phrozen
Created August 14, 2019 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrozen/09f79440d1ad4f3f1e447ee863d6d977 to your computer and use it in GitHub Desktop.
Save phrozen/09f79440d1ad4f3f1e447ee863d6d977 to your computer and use it in GitHub Desktop.
Go App + InfluxDB + Telegraf + Graphana
# start: docker-compose up
# tear down: docker-compose down
version: '3'
services:
server:
build:
context: .
ports:
- "8010:8010"
influxdb:
image: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
# volumes:
# - "/path/you/define:/var/lib/influxdb"
telegraf:
image: telegraf:1.8
container_name: telegraf
links:
- influxdb
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- server
grafana:
image: grafana/grafana
ports:
- "3000:3000"
# volumes:
# - "/path/you/define:/var/lib/grafana"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment