able-jackal-84140
10/04/2025, 1:04 PMtall-airline-16756
10/04/2025, 1:04 PMtall-airline-16756
10/04/2025, 1:05 PM/usr/local/etc/redis.conf by commenting out bind 127.0.0.1 and setting protected-mode no. This will open the door for Docker to connect smoothly.
2. Determine Docker-Visible IP Address: Next, find the IP address Docker can see. If you're on Linux, you can use 172.17.0.1. For macOS or Windows, just run docker run -it --rm alpine nslookup host.docker.internal to discover the right IP. This step ensures everything talks to each other correctly.
3. Create Configuration File: Now, create a config.yaml file with your specific details. Replace the placeholders with your actual values. Here’s a template to guide you:
log_level: debug
api_key: your-api-key
api_secret: your-api-secret
ws_url: ws://<docker-visible-ip>:7880
insecure: true
redis:
address: <docker-visible-ip>:6379
4. Run the Egress Service: You're almost there! Start the service using Docker with this command:
`docker run --rm \
-e EGRESS_CONFIG_FILE=/out/config.yaml \
-v ~/egress-test:/out \
livekit/egress`If you plan to run web or room composite egress, don’t forget to include --cap-add=SYS_ADMIN. This will make sure everything runs smoothly.
5. Optional: Set Up Storage Output: If you want to export to a custom S3-compatible endpoint, just add the following to your config.yaml file:
storage:
s3:
access_key: your-access-key
secret: your-secret
bucket: your-bucket
endpoint: http://your-custom-local-endpoint
6. Submit Egress Requests: Finally, use the LiveKit CLI or SDKs to send egress requests to your server. This will help you test everything end-to-end.
This setup is perfect for local testing and getting comfortable with the process. When you’re ready to move to production, I recommend using secure configurations with Helm or Kubernetes for the best experience.
Sources: README.md | Self-hosting the Egress Service | LiveKit Docs