File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ services:
22
22
23
23
books :
24
24
build : ' ./books'
25
- # only changes the docker desktop name of the container
25
+ # only changes the docker desktop name of the container
26
26
container_name : ' books'
27
27
28
28
ports :
@@ -101,12 +101,24 @@ services:
101
101
image : prom/prometheus:latest
102
102
container_name : prometheus
103
103
ports :
104
- - 9090:9090
104
+ - 9090:9090
105
105
command :
106
- - --config.file=/etc/prometheus/prometheus.yml
106
+ - --config.file=/etc/prometheus/prometheus.yml
107
107
volumes :
108
- - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
108
+ - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
109
109
depends_on :
110
- - cadvisor
111
-
112
-
110
+ - cadvisor
111
+
112
+ grafana :
113
+ image : grafana/grafana:latest
114
+ container_name : grafana
115
+ ports :
116
+ - 2999:3000
117
+ volumes :
118
+ # Share the named volume with the grafana container
119
+ - grafana-dir:/etc/grafana
120
+ environment :
121
+ GF_PATHS_CONFIG : /etc/grafana/grafana.ini
122
+ GF_SECURITY_ALLOW_EMBEDDING : ' true'
123
+ depends_on :
124
+ - prometheus
You can’t perform that action at this time.
0 commit comments