ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.5k stars 255 forks source link

Docker integration - swarm support #1927

Open atiltman opened 4 months ago

atiltman commented 4 months ago

Description

I really like the simplicity of this dashboard but the docker integration assumes you have a single host.

Lots of people are running clusters/swarms who would love both visibility and control over the swarm. I constrain Homarr to run on manager nodes only which means it should be able to access and control all containers across my cluster, if the feature was supported.

Priority

Medium (Would be very useful)

github-actions[bot] commented 4 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

ajnart commented 2 months ago

I believe this could be done by splitting the docker URL env parameter into a separator (most likely ;) and setting the value to HOST_ONE:3000;HOST_TWO:7632;HOST_TREE:2000 for example. Then in the code you'd need to instantiate a Dockerode https://github.com/apocas/dockerode for each host probably. Take a look at this related issue : https://github.com/apocas/dockerode/issues/212