[Custom Integration] HA Docker Socket Proxy – Secure & Real-time Container Monitoring

Hi everyone! :wave:

I’d like to share a new integration I’ve been working on: Docker Socket Proxy.

While there are existing ways to monitor Docker, I wanted a solution that focuses on security and ease of use for modern Home Assistant setups, especially those running on separate hosts.

Why this integration? Instead of exposing the dangerous /var/run/docker.sock directly to Home Assistant, this integration communicates with Tecnativa’s Docker Socket Proxy. This keeps your Docker daemon secure while giving you full visibility.

:sparkles: Key Features:

  • :rocket: Real-time Monitoring: Automatic polling of container states and health.
  • :shield: Security First: Designed to work through a proxy (no local socket mounting required).
  • :mag: Auto-Discovery: New containers show up as sensors automatically.
  • :hospital: Health Check Support: Native parsing of Docker health statuses (healthy, unhealthy, etc.).
  • :globe_with_meridians: Service URLs: Generates clickable links in your dashboard based on container labels (e.g., ha.web_port).
  • :bell: Built-in Blueprint: Comes with a blueprint for instant mobile notifications if a container goes unhealthy or the host goes down.
  • :package: Multi-Host Support: Monitor your NAS, VPS, and Pi all in one place.

:bar_chart: Dashboard Power

The integration provides rich attributes (IPs, MACs, Uptime, Image version). It works great with flex-table-card to create a “Docker Zoo” overview:

:hammer_and_wrench: Quick Start

The easiest way to install is via HACS:

  1. Add https://github.com/s-t-e-f-a-n/ha_docker_socket_proxy as a custom repository.
  2. Install & Restart.
  3. Add the “Docker Socket Proxy” integration via the UI.

Detailed setup instructions, including the recommended docker-compose for the proxy and dashboard YAML examples, can be found in the README:

:point_right: GitHub: s-t-e-f-a-n/ha_docker_socket_proxy

I’m looking forward to your feedback and hearing about how you use it!

2 Likes

Can it be used for troubleshooting the numerous network issues reported here every day, where misconfigured subnets and routing disallow communication?

I suppose it will be self defeating, as succesful installation implies successful networking…

At the risk of sounding silly, does this integration make the HAOS docker stack available for monitoring by an external docker monitor?

Nope, but I did a quick App that you can use - GitHub - rikardronnkvist/home-assistant-apps: Home Assistant Apps

(Edit: Movedt o a more generic repo)