-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yml
54 lines (47 loc) · 1.26 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
48
49
50
51
52
53
54
version: '3'
services:
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- prometheus-data:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
# grafana:
# image: grafana/grafana
# ports:
# - 3000:3000
# volumes:
# - ./grafana.db:/etc/grafana/grafana.db
# - ./grafana.ini:/etc/grafana/grafana.ini
node-exporter:
image: prom/node-exporter
ports:
- 9100:9100
# nginx-exporter: # nginx + nginx-exporter inside
# image: etiennetremel/nginx-prometheus
# ports:
# - 8080:80 # serving website
# - 9101:9101 # metrics
# postgres:
# image: postgres:10
# ports:
# - 5432:5432
# environment:
# - POSTGRES_USER=workshop
# - POSTGRES_PASSWORD=workshop
# volumes:
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
# postgresql-exporter:
# image: wrouesnel/postgres_exporter
# ports:
# - 9187:9187
# environment:
# - DATA_SOURCE_NAME=postgresql://workshop:workshop@postgres:5432/workshop?sslmode=disable
# - PG_EXPORTER_EXTEND_QUERY_PATH=/custom-queries.yaml
# volumes:
# - ./custom-queries.yml:/custom-queries.yaml
# depends_on:
# - postgres
volumes:
prometheus-data: