-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose-local-monitor.yml
66 lines (62 loc) · 1.71 KB
/
compose-local-monitor.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
55
56
57
58
59
60
61
62
63
64
65
66
# suggested usage:
# docker-compose -f compose-local-deps.yml -f compose-local-monitor.yml up -d
version: '2'
services:
# elasticsearch-exporter:
# image: justwatch/elasticsearch_exporter:1.0.2
# container_name: elasticsearch-exporter
# command:
# - '-es.uri=http://elasticsearch:9200'
# network_mode: bridge
# links:
# - elasticsearch:elasticsearch
# ports:
# - 9108:9108
# postgres-exporter:
# # if this isn't working run ./initialise_local_environment.sh
# network_mode: bridge
# image: wrouesnel/postgres_exporter
# container_name: postgres-exporter
# environment:
# - DATA_SOURCE_URI=postgres:5432/rutherford?sslmode=disable
# - DATA_SOURCE_USER=$POSTGRES_DB_USER
# - DATA_SOURCE_PASS=$POSTGRES_DB_PASSWORD
# links:
# - postgres:postgres
# ports:
# - 9187:9187
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- --storage.tsdb.retention=7d
- --storage.tsdb.path=/prometheus/data
- --config.file=/prometheus/prometheus.yml
volumes:
- ./prometheus:/prometheus
network_mode: bridge
# links:
# - postgres-exporter:postgres-exporter
# - elasticsearch-exporter:elasticsearch-exporter
ports:
- 9090:9090
grafana:
image: grafana/grafana
container_name: grafana
environment:
- GF_SECURITY_ADMIN_USER=grafana
- GF_SECURITY_ADMIN_PASSWORD=grafana
- GF_DATABASE_TYPE=sqlite3
- GF_AUTH_ANONYMOUS_ENABLED=false
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/var/lib/grafana
network_mode: bridge
links:
- prometheus:prometheus
ports:
- 3000:3000
networks:
default:
external:
name: bridge