forked from orb-community/orb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (39 loc) · 1.17 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Original Copyright (c) Mainflux
# SPDX-License-Identifier: Apache-2.0
# Adapted for Orb project, modifications licensed under MPL v. 2.0:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/. */
version: "3.7"
networks:
orb-base-net:
driver: bridge
volumes:
orb-prometheus-volume:
orb-grafana-volume:
services:
## common core services ##
prometheus:
image: prom/prometheus:v2.26.0
container_name: orb-app-prom
restart: on-failure
ports:
- ${MF_PROMETHEUS_PORT}:${MF_PROMETHEUS_PORT}
networks:
- orb-base-net
volumes:
- orb-prometheus-volume:/prometheus
- ./configs/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:7.5.5
container_name: orb-app-grafana
depends_on:
- prometheus
restart: on-failure
ports:
- ${MF_PUBLIC_GRAFANA_PORT}:${MF_GRAFANA_PORT}
networks:
- orb-base-net
volumes:
- orb-grafana-volume:/var/lib/grafana
- ./configs/grafana-defaults.ini:/usr/share/grafana/conf/defaults.ini