mc-router icon indicating copy to clipboard operation
mc-router copied to clipboard

Enable docker (non swarm) auto discovery

Open Foxite opened this issue 3 years ago • 1 comments

Docker swarm support is added (#60) and it should work with non-swarm deployments as well, however if you start it with --in-docker-swarm you get this:

time="2022-08-15T17:23:00Z" level=fatal msg="Unable to start docker swarm integration" error="Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again."

I suggest adding --in-docker to enable autodiscovery in a plain docker engine deployment.

Foxite avatar Aug 15 '22 17:08 Foxite

The problem with this is that service discovery using a non-swarm environment is different than the swarm one. It requires to reimplement the discovery code for a list of containers instead of a list of services. I don't think that setting up docker swarm is so difficult (https://dockerswarm.rocks/), but if someone has time it's not that hard to do, most of the labels logic should be reusable.

n1xx1 avatar Nov 21 '22 08:11 n1xx1