-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.8'
services:
grafana:
container_name: grafana
image: grafana/grafana-enterprise:9.5.2
restart: unless-stopped
ports:
- 3000:3000
volumes:
- ./conf/grafana:/etc/grafana
networks:
- grafananetwork
prometheus:
container_name: prometheus
image: prom/prometheus:v2.44.0
restart: unless-stopped
ports:
- 9090:9090
networks:
- grafananetwork
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=15d'
- '--web.enable-lifecycle'
- '--web.enable-remote-write-receiver'
agent:
container_name: agent
image: grafana/agent:v0.33.2
restart: unless-stopped
volumes:
- ./conf/grafana-agent/agent-linux.yaml:/etc/agent/agent.yaml
networks:
- grafananetwork
loki:
container_name: loki
image: grafana/loki:2.8.2
restart: unless-stopped
ports:
- 3100:3100
- 7946
- 9095
networks:
- grafananetwork
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
command:
- '-config.file=/etc/loki/local-config.yaml'
networks:
grafananetwork:
name: grafananetwork