Livekit-sip on docker swarm

Dear community,

I need to deploy livekit-sip on docker swarm.

Livekit-sip is using a large number of port because of SIP and RTP trafic, I need to expose a udp range from 10000 to 20000.

Obviously, the recommended way to do this is without docker swarm is

network_mode: host

seems that this is still possible somehow according to Host network driver | Docker Docs

But I’m unsure on how to do it.

I also see this Use Swarm mode routing mesh | Docker Docs but this require to list all ports ! I cannot do this because of large number of ports needed.

I also test it on my swarm service but it didn’t worked :

networks:

  • hostnet

hostnet:
external: true
name: “host”

any idea ?

thank you !

Have you created the network manually on all nodes before?

docker network create -d host hostnet

Hello,

no, but it seems to be a default network :

root@server :~# docker network ls
NETWORK ID     NAME                      DRIVER    SCOPE 
[…]
465a589bf319   host                      host      local

right ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.