sigp / lighthouse-metrics

A docker-compose with Grafana + Prometheus for monitoring Lighthouse
145 stars 49 forks source link

Replace host network mode so it works on Docker Desktop for Mac/Windows as well #39

Closed jimmygchen closed 4 months ago

jimmygchen commented 1 year ago

The host networking driver is only supported on Linux hosts, and not on other platforms (See docs). Without host networking, the ports are not exposed to host and ports need to be published for prometheus and grafana to be accessible.

I haven't been able to verify this on Linux, but this should work on Linux as well from Docker version 20.10.0 released in December 2020.

AgeManning commented 4 months ago

Bumping this. This still relevant?

jimmygchen commented 4 months ago

This may no longer be required with the latest Docker desktop version (4.29) released two weeks ago! I'm going to try this out and will report back.

Support for host network mode on Docker Desktop for Mac and Windows

https://www.docker.com/blog/docker-desktop-4-29/#support-host

jimmygchen commented 4 months ago

Confirm this now works on Docker Desktop for MacOS version 4.29, with host networking enabled (Beta features)!

Happy to close this now.