1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-04 22:17:59 +08:00
Mainflux.mainflux/docker/docker-compose-monitoring.yml
Drasko DRASKOVIC eff9f62b8b Add monitoring composition
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-09-18 21:28:21 +02:00

67 lines
1.3 KiB
YAML

###
# Copyright (c) 2015-2017 Mainflux
#
# Mainflux server is licensed under an Apache license, version 2.0 license.
# All rights not explicitly granted in the Apache license, version 2.0 are reserved.
# See the included LICENSE file for more details.
###
version: "3"
services:
###
# cAdvisor
###
cadvisor:
image: google/cadvisor
container_name: mainflux-cadvisor
ports:
- 8080:8080
network_mode: bridge
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
###
# Prometheus Pushgateway
###
prometheus-gateway:
image: prom/pushgateway
container_name: mainflux-prometheus-gateway
network_mode: bridge
ports:
- 9091:9091
###
# Prometheus Server
###
prometheus-server:
image: prom/prometheus
container_name: mainflux-prometheus
network_mode: bridge
ports:
- 9090:9090
links:
- cadvisor:cadvisor
- metrics-gateway:metrics-gateway
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
###
# Grafana
###
grafana:
image: grafana/grafana
container_name: mainflux-grafana
network_mode: bridge
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=secret
links:
- prometheus-server:prometheus