blob: bb91628b722b07069cb3a0450e2a0163683b39ae [file] [log] [blame]
Basil Eljuse4b14afb2020-09-30 13:07:23 +01001#======================================================================
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#======================================================================
6
7#======================================================================
8# FILE: docker-compose.yml
9#
10# DESCRIPTION: This is a docker compose file for the deployment of all
11# the components involved in the quality metrics collection setup. It
12# brings up Grafana, InfluxDB and the broker component as a multi-
13# container deployment.
14#======================================================================
15
16version: "2"
17services:
18 grafana:
19 image: grafana/grafana
20 container_name: grafana_container
21 restart: always
22 ports:
23 - 3000:3000
24 networks:
25 - metrics_network
26 volumes:
27 - grafana-volume:/var/lib/grafana
28 - ./grafana-provisioning/:/etc/grafana/provisioning
29 environment:
30 - GF_INSTALL_PLUGINS=grafana-piechart-panel
31 influxdb:
32 image: influxdb
33 container_name: influxdb_container
34 restart: always
35 ports:
36 - 8086:8086
37 networks:
38 - metrics_network
39 volumes:
40 - influxdb-volume:/var/lib/influxdb
41 web:
42 build: .
43 ports:
44 - "5000:5000"
45 networks:
46 - metrics_network
47 depends_on:
48 - influxdb
49 links:
50 - influxdb:influx
51networks:
52 metrics_network:
53volumes:
54 grafana-volume:
55 external: true
56 influxdb-volume:
57 external: true
58