plain-hamburger-12701
09/30/2025, 11:29 AMtall-airline-16756
09/30/2025, 11:29 AMplain-hamburger-12701
09/30/2025, 11:29 AMtall-airline-16756
09/30/2025, 11:29 AMplain-hamburger-12701
09/30/2025, 11:30 AMtall-airline-16756
09/30/2025, 11:32 AMplain-hamburger-12701
09/30/2025, 11:33 AMtall-airline-16756
09/30/2025, 11:33 AMdocker-compose.yaml example to help you deploy a LiveKit server with Redis for local development:
services:
redis:
image: redis
volumes:
- redis_data:/data
ports:
- 6379:6379
livekit:
image: livekit/livekit-server
command: --dev --redis-host localhost:6379
network_mode: host
depends_on:
redis:
condition: service_started
volumes:
redis_data:
This setup:
• Uses the official redis and livekit/livekit-server Docker images, which are reliable and well-maintained.
• Runs LiveKit in development mode with --dev, automatically setting the API key to devkey and secret to secret for convenience.
• Connects LiveKit to Redis using --redis-host localhost:6379 to keep things simple locally.
• Includes network_mode: host to make sure WebRTC traffic flows smoothly.
• Keeps your Redis data safe by persisting it with a named volume.
When you're ready to start, just run this command:
docker compose up
For production, I recommend using the configuration generator tool—it helps you set up TLS, firewall rules, and DNS support for a more robust deployment. Please feel free to reach out if you have any questions or need a hand with anything else!
Sources: test/integration/livekit_test.go | cmd/server/main.go | Deploy to a VM | LiveKit Docsplain-hamburger-12701
09/30/2025, 11:35 AMversion: '3.7'
services:
livekit:
image: livekit/livekit-server:latest
command:
- --config
- /etc/livekit.yaml
volumes:
- ./livekit.yaml:/etc/livekit.yaml
ports:
- "7880:7880"
- "7881:7881"
- "3478:3478/udp"
- "60000-61000:60000-61000/udp"
networks:
- livekit-net
depends_on:
- redis
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
volumes:
- redis-data:/data
networks:
- livekit-net
voice-agent:
build:
context: ./voice-agent
dockerfile: Dockerfile
container_name: voice-agent
depends_on:
- livekit
- redis
environment:
- LIVEKIT_URL=ws://livekit:7880
- LIVEKIT_API_KEY=ds-dev-key-12345678901234567890abcd
- LIVEKIT_API_SECRET=ds-dev-secret-12345678901234567890abcd
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ROOM_NAME=${ROOM_NAME:-voice-room}
volumes:
- ./voice-agent:/app
networks:
- livekit-net
restart: unless-stopped
voice-ui:
build:
context: ./voice-ui
dockerfile: Dockerfile
container_name: voice-ui
ports:
- "4000:80"
depends_on:
- livekit
networks:
- livekit-net
restart: unless-stopped
volumes:
redis-data:
networks:
livekit-net:
driver: bridgecan you reveiw my current config -tall-airline-16756
09/30/2025, 11:35 AMdocker-compose.yaml configuration looks well-structured and includes the following key components:
• LiveKit Service: Properly configured with ports for signaling (7880, 7881) and WebRTC traffic (3478/UDP and 60000-61000/UDP). The configuration file livekit.yaml is mounted correctly.
• Redis Service: Uses the Redis 7 Alpine image with append-only mode enabled and persistent storage via the redis-data volume.
• Voice-Agent Service: Includes environment variables for LiveKit and OpenAI API keys, as well as a default room name. It depends on LiveKit and Redis, ensuring proper startup order.
• Voice-UI Service: Exposes port 4000 for the UI and depends on LiveKit for proper initialization.
• Networking: All services are connected to the livekit-net bridge network, ensuring inter-service communication.
Here are a few friendly suggestions to help make your setup even better:
1. It’s a great idea to make sure your LIVEKIT_API_KEY and LIVEKIT_API_SECRET are kept safe and not hardcoded in your file. Using a secrets manager or environment variables can really help keep things secure.
2. Double-check that your livekit.yaml file has all the right settings for your deployment, especially the Redis connection details and any TURN server configurations you might need.
3. For production environments, it’s important to secure the exposed ports (like 7880 and 7881) so that only trusted clients can access them.
4. Adding health checks for your services can be super helpful to monitor their status and automatically recover if something goes wrong.
If you have any questions or want me to walk you through any of these steps, just let me know—I’m here to help!plain-hamburger-12701
09/30/2025, 11:36 AMtall-airline-16756
09/30/2025, 11:36 AMnetworks section in your configuration is set up correctly. You’ve created a custom bridge network called livekit-net, which all your services are using. This is a great way to make sure your services can easily communicate with each other within the same network.
Here’s the part of your configuration that handles this:
networks:
livekit-net:
driver: bridge
Just a couple of friendly suggestions:
• If you’re running this on a production server, it’s a good idea to make sure the network is properly isolated and secured to keep everything safe from unauthorized access.
• When you want to debug or keep an eye on things, you can use the command docker network inspect livekit-net to check how the services are connecting.
If you have any more questions or need a hand with anything else, please don’t hesitate to ask—I’m here to help!