Created
August 31, 2020 01:30
-
-
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.
This file contains hidden or 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
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