-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.override.yml
78 lines (74 loc) · 1.94 KB
/
docker-compose.override.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
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.7'
services:
prometheus-gw:
image: prom/pushgateway
ports:
- 9091
prometheus:
image: bitnami/prometheus
volumes:
- prometheus_volume:/opt/bitnami/prometheus/data
configs:
- source: prometheus_conf
target: /opt/bitnami/prometheus/conf/prometheus.yml
ports:
# — 9090:9090
- 9090
labels:
- "traefik.enable=true"
- "traefik.http.routers.prometheus.rule=Host(`prometheus.pelp.sunai.uoc.edu`)"
- "traefik.http.routers.prometheus.entrypoints=http"
- "traefik.http.services.prometheus-service.loadBalancer.sticky.cookie=true"
- "traefik.http.services.prometheus-service.loadbalancer.server.port=9090"
- "traefik.http.routers.prometheus.service=prometheus-service"
grafana:
image: grafana/grafana-oss
user: root
depends_on:
- prometheus
#ports:
#— 3060:3000
volumes:
- grafana_volume:/var/lib/grafana
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`grafana.pelp.sunai.uoc.edu`)"
- "traefik.http.routers.grafana.entrypoints=http"
redis-exporter:
image: bitnami/redis-exporter:latest
command: ['--redis.addr', 'redis']
ports:
- 9121
depends_on:
- redis
node-exporter:
image: prom/node-exporter:latest
restart: unless-stopped
expose:
- 9100
cadvisor:
image: gcr.io/cadvisor/cadvisor
restart: unless-stopped
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /var/run/docker.sock:/var/run/docker.sock:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
expose:
- 8080
volumes:
prometheus_volume:
driver_opts:
type: none
device: ${PWD}/_data/prometheus
o: bind
grafana_volume:
driver_opts:
type: none
device: ${PWD}/_data/grafana
o: bind
configs:
prometheus_conf:
file: ${PWD}/docker/prometheus.yml