-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.01 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
version: "3"
services:
kungfu:
build: .
hostname: kungfu
restart: always
privileged: true
network_mode: host
environment:
- TZ=Asia/Shanghai
volumes:
- ./data/kungfu/config:/config
prometheus:
image: prom/prometheus:v2.39.1
hostname: prometheus
restart: always
user: root
network_mode: host
environment:
- TZ=Asia/Shanghai
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
volumes:
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus/config:/config
- prometheus_data:/prometheus
depends_on:
- kungfu
# default user/password: admin/admin
grafana:
image: grafana/grafana:9.1.7
hostname: grafana
restart: always
user: root
network_mode: host
environment:
- TZ=Asia/Shanghai
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
volumes:
prometheus_data:
grafana_data: