From 90eedeeebf2e690d2b9d9ee68e94c5ae70fef0f4 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sat, 10 Dec 2022 13:29:23 -0500 Subject: [PATCH] fix livekit network connection --- config/livekit.sample.yaml | 2 +- config/redis.sample.conf | 2 -- docker-compose.yml | 13 ++++--------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/config/livekit.sample.yaml b/config/livekit.sample.yaml index 77532bb..d80b484 100644 --- a/config/livekit.sample.yaml +++ b/config/livekit.sample.yaml @@ -18,7 +18,7 @@ rtc: use_external_ip: true redis: - address: redis:6379 + address: 127.0.0.1:6379 db: 1 turn: diff --git a/config/redis.sample.conf b/config/redis.sample.conf index c30c063..3c95060 100644 --- a/config/redis.sample.conf +++ b/config/redis.sample.conf @@ -1,5 +1,3 @@ -bind 127.0.0.1 ::1 -protected-mode yes port 6379 timeout 0 tcp-keepalive 300 diff --git a/docker-compose.yml b/docker-compose.yml index ad7816c..c8f9c0e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,8 +26,8 @@ services: image: redis:7-alpine restart: unless-stopped command: redis-server /etc/redis.conf - # ports: - # - 6379:6379 + ports: + - "127.0.0.1:6379:6379" volumes: - ./redis:/data - ./config/redis.conf:/etc/redis.conf @@ -36,12 +36,7 @@ services: image: livekit/livekit-server:v1.3 command: --config /etc/livekit.yaml restart: unless-stopped - # network_mode: "host" - ports: - - "7881:7881/tcp" - - "50000-60000:50000-60000/udp" - - "5349:5349/tcp" - - "3478:3478/udp" + network_mode: "host" depends_on: - redis volumes: @@ -54,7 +49,7 @@ services: - .env.production restart: unless-stopped ports: - - "8100:8100" + - "127.0.0.1:8100:8100" depends_on: - db - redis