-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
45 lines (41 loc) · 1.27 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
version: '3'
services:
# Prometheus is a monitoring and time-series database
prometheus:
image: prom/prometheus:v2.11.1
restart: on-failure
command: --config.file=/etc/prometheus/config/prometheus.yml
volumes:
- ./config/prometheus/:/etc/prometheus/config/
ports:
- 9090:9090
# Alertmanager is the component responsible for de-duplicating and sending
# alerts via different backends (i.e. PagerDuty, Slack, etc)
alertmanager:
image: prom/alertmanager:v0.18.0
restart: on-failure
ports:
- 9093:9093
# Grafana can be used for creating nice dashboards based on the data stored
# in Prometheus
grafana:
image: grafana/grafana:6.2.5
restart: on-failure
environment:
GF_LOG_LEVEL: debug
volumes:
- ./config/grafana/datasource.yml:/etc/grafana/provisioning/datasources/prometheus.yml
- ./config/grafana/dashboard-providers.yml:/etc/grafana/provisioning/dashboards/dashboard-providers.yml
- ./config/grafana/dashboards/:/var/lib/grafana/dashboards/
ports:
- 3000:3000
depends_on:
- prometheus
# Our sample Node.js application
sample-app:
build:
context: ./sample-app
volumes:
- ./sample-app/index.js:/usr/src/app/index.js
ports:
- 4000:4000