I am unsure where the true issue lies, but when running Beszel, a few hours after starting the agent, the socket proxy spits out the error http: proxy error: read unix @->/run/docker.sock: use of closed network connection. Please see henrygd/beszel#1028 for more context.
Note that I have observed the issue with both the socket volume mount and TCP connection.