-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.52 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
version: '3.2'
services:
postgres_exporter_dev:
image: wrouesnel/postgres_exporter
environment:
DATA_SOURCE_NAME: "postgresql://postgres:postgres@postgres_exporter_dev:5432/?sslmode=disable"
command:
- '--extend.query-path=/queries.yaml'
volumes:
- /backups/prometheus/dev/queries.yaml:/queries.yaml
postgres_exporter_test:
image: wrouesnel/postgres_exporter
environment:
DATA_SOURCE_NAME: "postgresql://postgres:postgres@postgres_exporter_test:5433/?sslmode=disable"
command:
- '--extend.query-path=/queries.yaml'
volumes:
- /backups/prometheus/test/queries.yaml:/queries.yaml
node_exporter:
image: quay.io/prometheus/node-exporter
network_mode: "host"
pid: "host"
cap_add:
- SYS_TIME
prometheus:
image: prom/prometheus:latest
volumes:
- /backups/prometheus/storage:/prometheus
- /backups/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.external-url=http://prometheus:9090/'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention=200h'
- '--web.enable-lifecycle'
- '--web.enable-admin-api'
- '--storage.tsdb.min-block-duration=30m'
- '--storage.tsdb.max-block-duration=1d'
ports:
- 9090:9090
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000