@@ -179,8 +179,6 @@ services:
179179 - ' --web.enable-lifecycle'
180180 - ' --web.listen-address=0.0.0.0:19090'
181181 restart : unless-stopped
182- profiles :
183- - monitoring
184182
185183 # Grafana - for visualization
186184 grafana :
@@ -192,6 +190,7 @@ services:
192190 - ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards:ro
193191 - ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources:ro
194192 environment :
193+ - GF_DATASOURCES_DEFAULT_URL=http://localhost:19090
195194 - GF_SECURITY_ALLOW_EMBEDDING=true
196195 - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
197196 - GF_SECURITY_ADMIN_USER=${GRAFANA_USER:-admin}
@@ -200,8 +199,6 @@ services:
200199 depends_on :
201200 - prometheus
202201 restart : unless-stopped
203- profiles :
204- - monitoring
205202
206203 # Node Exporter for system metrics (optional)
207204 node-exporter :
@@ -217,36 +214,30 @@ services:
217214 - ' --path.sysfs=/host/sys'
218215 - ' --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
219216 restart : unless-stopped
220- profiles :
221- - monitoring
222217
223218 # PostgreSQL Exporter for database metrics (optional)
224219 postgres-exporter :
225220 image : prometheuscommunity/postgres-exporter:latest
226221 container_name : postgres-exporter
222+ network_mode : host
227223 environment :
228224 DATA_SOURCE_NAME : " postgresql://authuser:authpass123@localhost:5400/authdbui?sslmode=disable"
229- network_mode : host
230225 depends_on :
231226 postgres :
232227 condition : service_healthy
233228 restart : unless-stopped
234- profiles :
235- - monitoring
236229
237230 # Redis Exporter for Redis metrics (optional)
238231 redis-exporter :
239232 image : oliver006/redis_exporter:latest
240233 container_name : redis-exporter
234+ network_mode : host
241235 environment :
242236 REDIS_ADDR : " redis://localhost:6379"
243- network_mode : host
244237 depends_on :
245238 redis :
246239 condition : service_healthy
247240 restart : unless-stopped
248- profiles :
249- - monitoring
250241
251242volumes :
252243 postgres_data : {}
0 commit comments