-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.54 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
62
63
64
version: "3.9"
services:
grafana:
image: grafana/grafana:11.1.3
container_name: grafana
ports:
- "3000:3000"
volumes:
- ./grafana/provisioning/datasources/:/etc/grafana/provisioning/datasources/
- ./grafana/provisioning/dashboards/:/etc/grafana/provisioning/dashboards/
- ./grafana/data/:/var/lib/grafana/dashboards/
environment:
- GF_AUTH_BASIC_ENABLED=false
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Editor
prometheus:
image: prom/prometheus:v2.54.0
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/alert_rules.yml:/prometheus/alert_rules.yml
promlens:
image: prom/promlens:v0.3.0
container_name: promlens
ports:
- "9000:8080"
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.49.1
container_name: cadvisor
privileged: true
command:
- '-port=8090'
ports:
- "8090:8090"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
vector:
image: timberio/vector:0.40.0-debian
container_name: vector
ports:
- "8686:8686"
- "9598:9598"
volumes:
- ./vector/vector.yaml:/etc/vector/vector.yaml
app:
build:
dockerfile: ./Dockerfile
context: ./
container_name: demo
ports:
- "8080:8080"
- "9004:9004"