Skip to content

Commit 895dfc1

Browse files
committedOct 14, 2024
init add grafana
1 parent 69b519c commit 895dfc1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
 

‎docker/grafana/docker-compose.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
services:
2+
prometheus:
3+
image: prom/prometheus:v2.54.1
4+
container_name: prometheus
5+
command:
6+
- '--config.file=/etc/prometheus/prometheus.yml'
7+
ports:
8+
- 9090:9090
9+
restart: unless-stopped
10+
volumes:
11+
- /docker/appdata/prometheus:/etc/prometheus
12+
- prom_data:/prometheus
13+
grafana:
14+
image: grafana/grafana:11.2.2
15+
container_name: grafana
16+
ports:
17+
- 3000:3000
18+
restart: unless-stopped
19+
environment:
20+
- GF_SECURITY_ADMIN_USER=mafyuh
21+
- GF_SECURITY_ADMIN_PASSWORD=$GF_SECURITY_ADMIN_PASSWORD
22+
volumes:
23+
- /docker/appdata/grafana:/etc/grafana/provisioning/datasources
24+
25+
volumes:
26+
prom_data:

0 commit comments

Comments
 (0)
Please sign in to comment.