-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
76 lines (75 loc) · 1.78 KB
/
docker-compose.yaml
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
75
76
#
# Starts the latest loki/grafana/promtail/jaeger stack. After running check:
#
# grafana: http://localhost:11000
# jaeger: http://localhost:16686
# loki: http://localhost:3100
# promtail: http://localhost:9080
#
version: "3.8"
services:
loki:
container_name: loki
image: grafana/loki:latest
volumes:
- ./config:/etc/config
entrypoint:
- /usr/bin/loki
- -config.file=/etc/config/loki-local-config.yaml
ports:
- "3100:3100"
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
grafana:
container_name: grafana
image: grafana/grafana:latest
volumes:
- ./datasource:/etc/grafana/provisioning/datasources
- ./config/grafana.ini:/etc/grafana/grafana.ini
ports:
- "11000:11000"
# logging:
# driver: loki
# options:
# loki-url: "http://admin:admin@localhost:3001/api/v1/push"
# extra_hosts:
# - "loki:<host ip>"
prometheus:
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ./config:/etc/config
entrypoint:
- /bin/prometheus
- --config.file=/etc/config/prometheus.yaml
ports:
- "9090:9090"
# extra_hosts:
# - "loki:<host ip>"
promtail:
container_name: promtail
image: grafana/promtail:latest
volumes:
- ./config:/etc/config
- /var/log:/var/hostlog:ro
# - ./fakelogs:/tmp/promtail-test:ro
entrypoint:
- /usr/bin/promtail
- --config.file=/etc/config/promtail-local-config.yaml
ports:
- "9080:9080"
# extra_hosts:
# - "loki:<host ip>"
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "6831:6831"
networks:
default:
external:
name: source-verify