Skip to content

Performance improvements and host network issue fixes#15

Closed
OXERY wants to merge 5 commits into
obeone:mainfrom
OXERY:main
Closed

Performance improvements and host network issue fixes#15
OXERY wants to merge 5 commits into
obeone:mainfrom
OXERY:main

Conversation

@OXERY

@OXERY OXERY commented Aug 19, 2025

Copy link
Copy Markdown

Came across the PR #12 today and updated it with a few performance optimizations.
The script now doesn't loop through all Docker events anymore, as this uses pretty much one CPU core on larger systems. Filters for relevant events and the monitoredLabel exist, so that only events relevant for this tool are subscribed, including the stop event, @mbrodala introduced in his PR.
Also, this fixes #13 as from now on, connecting traefik to the network host is forbidden. (Could be made configurable, but I think connecting traefik to network_mode: host should be a manual action either way.)

mbrodala and others added 5 commits June 27, 2025 09:35
This reduces the chance of having dangling networks left. This can happen if all services are removed from a network and the network is automatically removed as is the case with e.g. "docker compose down". If Traefik does not leave a network quickly enough, the network is left unchanged because it is still "in use".
fix(main): disconnect networks early on "stop"
@OXERY OXERY closed this Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore host network

2 participants