Created
August 14, 2019 20:25
-
-
Save phrozen/09f79440d1ad4f3f1e447ee863d6d977 to your computer and use it in GitHub Desktop.
Go App + InfluxDB + Telegraf + Graphana
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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