File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,7 @@ GF_ADMIN_PASSWORD=your_password
3
3
GRAFANA_URL = " http://localhost:3000"
4
4
PROMETHEUS_URL = " http://localhost:9090"
5
5
LOKI_URL = " http://localhost:3100"
6
+ LOKI_PORT = " 3100"
7
+ GF_PORT = " 3000"
8
+ PROMETHEUS_PORT = " 9090"
9
+ PUSHGATEWAY_PORT = " 9091"
Original file line number Diff line number Diff line change 1
- version : ' 3'
1
+ version : ' 3.8 '
2
2
3
3
services :
4
4
pushgateway :
5
5
image : prom/pushgateway:v1.11.1
6
6
ports :
7
- - " 9091:9091 "
7
+ - " ${PUSHGATEWAY_PORT}:${PUSHGATEWAY_PORT} "
8
8
restart : unless-stopped
9
9
prometheus :
10
10
image : prom/prometheus:latest
@@ -15,7 +15,7 @@ services:
15
15
command :
16
16
- ' --config.file=/etc/prometheus/prometheus.yml'
17
17
ports :
18
- - " 9090:9090 "
18
+ - " ${PROMETHEUS_PORT}:${PROMETHEUS_PORT} "
19
19
depends_on :
20
20
- pushgateway
21
21
@@ -25,15 +25,15 @@ services:
25
25
user : root
26
26
restart : unless-stopped
27
27
ports :
28
- - " 3100:3100 "
28
+ - " ${LOKI_PORT}:${LOKI_PORT} "
29
29
command : -config.file=/etc/loki/local-config.yaml
30
30
31
31
grafana :
32
32
image : grafana/grafana:12.0.2
33
33
container_name : grafana
34
34
restart : unless-stopped
35
35
ports :
36
- - " 3000:3000 "
36
+ - " ${GF_PORT}:${GF_PORT} "
37
37
volumes :
38
38
- grafana-storage:/var/lib/grafana
39
39
- ./grafana/provisioning:/etc/grafana/provisioning
You can’t perform that action at this time.
0 commit comments