-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose-prometheus.yml
50 lines (43 loc) · 1.1 KB
/
docker-compose-prometheus.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
version: "3.8"
services:
webstack-go-prometheus:
image: prom/prometheus:latest
container_name: webstack-go-prometheus
volumes:
- ./deployments/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- webstack-go
webstack-go-grafana:
image: grafana/grafana-enterprise:9.4.3
container_name: webstack-go-grafana
ports:
- "3000:3000"
networks:
- webstack-go
webstack-go-loki:
image: grafana/loki:2.7.3
container_name: webstack-go-loki
user: root
volumes:
- ./deployments/loki/loki.yaml:/etc/loki/loki.yaml
command: -config.file=/etc/loki/loki.yaml
ports:
- "3100:3100"
networks:
- webstack-go
webstack-go-promtail:
image: grafana/promtail:2.7.3
container_name: webstack-go-promtail
user: root
volumes:
- ./logs/:/data/logs/
- ./deployments/loki/promtail.yaml:/etc/promtail/promtail.yaml
command: -config.file=/etc/promtail/promtail.yaml
networks:
- webstack-go
networks:
webstack-go:
driver: bridge
name: webstack-go