Skip to content

Instantly share code, notes, and snippets.

@luketn
Created August 31, 2020 01:30
Show Gist options
  • Save luketn/b2e1171ad5003b2e18d37add44e6b566 to your computer and use it in GitHub Desktop.
Save luketn/b2e1171ad5003b2e18d37add44e6b566 to your computer and use it in GitHub Desktop.
The docker-compose configuration file defines three servers and two networks, combining them together into a solution comprising a visualisation web server, database and load test client.
version: '3.4'
networks:
k6:
grafana:
services:
influxdb:
image: influxdb:latest
networks:
- k6
- grafana
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=k6
grafana:
image: grafana/grafana:latest
networks:
- grafana
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./dashboards:/var/lib/grafana/dashboards
- ./grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./grafana-datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
k6:
image: loadimpact/k6:latest
networks:
- k6
ports:
- "6565:6565"
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
volumes:
- ./scripts:/scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment