bland-toddler-43562
10/06/2025, 12:36 PMtall-airline-16756
10/06/2025, 12:36 PMtall-airline-16756
10/06/2025, 12:36 PMbland-toddler-43562
10/06/2025, 12:39 PMtall-airline-16756
10/06/2025, 12:40 PMredis.conf file with these settings:
`save 900 1
save 300 10
save 60 10000
appendonly yes
appendfilename "appendonly.aof"
dir /data`This setup enables both periodic snapshots (RDB) and write-ahead logging (AOF), giving you durable storage.
2. Update Docker Configuration: Next, update your docker-compose.yaml to include the config and data mounts:
redis:
image: redis
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
- redis_data:/data
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
ports:
- 6379:6379
3. Verify Persistence: After restarting Redis and LiveKit-SIP services, you can check that your SIP trunks are still there by:
◦ Using the LiveKit CLI to list SIP trunks: livekit-cli list-sip-trunks
◦ Looking directly at Redis keys: HGETALL sip_trunk
◦ Checking for persistence files like dump.rdb and appendonly.aof inside the /data directory.
If Redis persistence isn’t set up properly, SIP trunks and dispatch rules won’t survive a restart. Please don’t hesitate to reach out if you’d like a hand with this setup or have any other questions—I’m here to help!
Sources: pkg/service/redisstore_sip_test.go | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... | Self-hosting the Egress Service | LiveKit Docs | README.mdbland-toddler-43562
10/06/2025, 12:41 PMtall-airline-16756
10/06/2025, 12:42 PMredis.conf tailored to LiveKit's persistence needs isn't fully detailed in the documentation, I’m happy to guide you through the general setup to get you started:
1. Redis Configuration: For persistence, you can use these settings in your `redis.conf`:
`save 900 1
save 300 10
save 60 10000
appendonly yes
appendfilename "appendonly.aof"
dir /data`Also, if you’re working in a development or local environment, make sure to:
◦ Comment out bind 127.0.0.1 so external connections are allowed.
◦ Set protected-mode no to enable non-local clients.
1. Other Required Files: To complete your setup, you might also need:These files usually get generated as part of LiveKit’s VM deployment tool.
◦ livekit.yaml - This is the main configuration file for LiveKit.
◦ docker-compose.yaml - Useful for containerized deployments.
◦ caddy.yaml - For setting up the reverse proxy.
One important tip: to keep everything running smoothly, make sure all services like SIP and Egress are pointing to the same Redis instance. If you have any questions or need help with a specific part of the configuration, just let me know—I’m here to help!
Sources: pkg/service/wire.go | README.md | pkg/config/config.go | Self-hosting the Egress Service | LiveKit Docs | Deploy to a VM | LiveKit Docs