Skip to content

Commit 9be2526

Browse files
author
s7nio
committed
Moint volumes direct to ./data
1 parent b1efa71 commit 9be2526

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/data/
2+
13
# Created by https://www.gitignore.io/api/java,macos,windows,intellij+all
24

35
### Intellij+all ###

docker-compose.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
version: '3'
2-
3-
volumes:
4-
prometheus_data: {}
5-
grafana_data: {}
1+
version: '3.6'
62

73
services:
84
prometheus:
95
image: prom/prometheus:v1.8.2
106
volumes:
117
- ./prometheus/:/etc/prometheus/
12-
- prometheus_data:/prometheus
8+
- ./data/prometheus/:/prometheus
139
command:
1410
- '-config.file=/etc/prometheus/prometheus.yml'
1511
- '-storage.local.path=/prometheus'
@@ -42,7 +38,7 @@ services:
4238
ports:
4339
- 3000:3000
4440
volumes:
45-
- grafana_data:/var/lib/grafana
41+
- ./data/grafana/:/var/lib/grafana
4642

4743
app:
4844
build: .

0 commit comments

Comments
 (0)