-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathlogging.docker-compose.yml
62 lines (58 loc) · 1.31 KB
/
logging.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
62
services:
vector:
image: timberio/vector:0.29.1-alpine
ports:
- "24224:24224"
- "24224:24224/udp"
environment:
- VECTOR_LOG=debug
volumes:
- ./vector/vector.toml:/etc/vector/vector.toml
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- loki
restart: unless-stopped
networks:
- backendworks
loki:
image: grafana/loki:latest
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
- loki_data:/loki
healthcheck:
test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:3100/ready"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- backendworks
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=master123
depends_on:
- loki
volumes:
- grafana_data:/var/lib/grafana
healthcheck:
test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:3000/api/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- backendworks
networks:
backendworks:
external: true
volumes:
loki_data:
driver: local
grafana_data:
driver: local