-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.51 KB
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
services:
prometheus:
container_name: prometheus
image: prom/prometheus:latest
environment:
- TARGET_HOST=${TARGET_HOST:-host.docker.internal:8080}
volumes:
- ./prometheus/prometheus.yml.template:/prometheus/prometheus.yml.template
- ./prometheus/entrypoint.sh:/entrypoint.sh
- ./prometheus/alert.rules.yml:/etc/prometheus/alert.rules.yml
ports:
- "9090:9090"
entrypoint:
- /bin/sh
- /entrypoint.sh
restart: always
alertmanager:
container_name: alertmanager
image: prom/alertmanager:latest
environment:
- SLACK_WEBHOOK=${SLACK_WEBHOOK:-https://hooks.slack.com}
volumes:
- ./alertmanager/alertmanager.yml.template:/etc/alertmanager/alertmanager.yml.template
- ./alertmanager/entrypoint.sh:/entrypoint.sh
ports:
- "9093:9093"
depends_on:
- prometheus
entrypoint:
- /bin/sh
- /entrypoint.sh
restart: always
loki:
container_name: loki
image: grafana/loki:latest
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100"
restart: always
grafana:
container_name: grafana
image: grafana/grafana:latest
environment:
- GF_SERVER_ROOT_URL=${GF_SERVER_ROOT_URL:-http://localhost:3000}
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
volumes:
- grafana-data:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
- loki
restart: always
volumes:
grafana-data: