From f0e59baad48e3505560e7ab015bbe4d0a8c63ff2 Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 26 Sep 2024 16:53:45 -0400 Subject: [PATCH] Make the SFU actually usable --- backend-docker-compose.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/backend-docker-compose.yml b/backend-docker-compose.yml index a15f6403a..bf228bf68 100644 --- a/backend-docker-compose.yml +++ b/backend-docker-compose.yml @@ -27,11 +27,15 @@ services: image: livekit/livekit-server:latest command: --dev --config /etc/livekit.yaml restart: unless-stopped - ports: - - "7880:7880" - - "7881:7881" - - "7882:7882" - - "50100-50200:50100-50200" + # The SFU seems to work far more reliably when we let it share the host + # network rather than opening specific ports (but why?? we're not missing + # any…) + network_mode: host + # ports: + # - "7880:7880" + # - "7881:7881" + # - "7882:7882" + # - "50100-50200:50100-50200" volumes: - ./backend/livekit.yaml:/etc/livekit.yaml networks: