-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (68 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
74 lines (68 loc) · 1.53 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml
environment:
PROMETHEUS_SCRAPE_INTERVAL: ${PROMETHEUS_SCRAPE_INTERVAL}
PROMETHEUS_TARGET_BACKEND: ${PROMETHEUS_TARGET_BACKEND}
ports:
- "9090:9090"
networks:
- monitoring
grafana:
image: grafana/grafana:9.4.7
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-volume:/var/lib/grafana
restart: always
networks:
- monitoring
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=admin
user: "472"
loki:
image: grafana/loki:2.8.2
container_name: loki
ports:
- "3100:3100"
volumes:
- ./loki-data:/var/lib/loki
- ./loki-config.yml:/etc/loki/config.yml
environment:
LOKI_PORT: ${LOKI_PORT}
networks:
- monitoring
promtail:
image: grafana/promtail:2.8.2
container_name: promtail
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./promtail-config.yml:/etc/promtail/config.yml
environment:
PROMTAIL_PORT: ${PROMTAIL_PORT}
depends_on:
- loki
networks:
- monitoring
networks:
monitoring:
driver: bridge
volumes:
grafana-volume:
driver: local
driver_opts:
type: none
o: bind
device: ./grafana/volume
loki-data:
driver: local
driver_opts:
type: none
o: bind
device: ./loki-data