fast-hairdresser-13908
10/14/2025, 8:07 AMtall-airline-16756
10/14/2025, 8:07 AMtall-airline-16756
10/14/2025, 8:08 AMcaddy.yaml, docker-compose.yaml, livekit.yaml, redis.conf, and some initialization scripts.
2. The setup uses Docker Compose and Caddy, which help with connectivity, automatically getting SSL certificates, and even offer optional media ingestion and recording features.
If you’d like, I can walk you through the detailed steps, including command-line instructions and firewall settings. Just let me know, and I’m here to help!
Sources: Deploy to a VM | LiveKit Docsfast-hairdresser-13908
10/14/2025, 8:09 AMtall-airline-16756
10/14/2025, 8:09 AMcloud-init.xxxx.yaml file into the User data field.
• This way, the VM will automatically run the cloud-init script at startup, which takes care of installing Docker, Docker Compose, generating configuration in /opt/livekit, and setting up a systemd service called livekit-docker.
2. Alternative: Use a startup script:
• After starting your Linux VM on Azure, copy the init_script.sh file to the VM.
• Then, SSH into your instance and run sudo ./init_script.sh. This script will install Docker, Docker Compose, and configure LiveKit with a systemd service for you.
3. Manage the service:
• You can control the LiveKit service easily with systemd commands like these:
sudo systemctl start livekit-docker
sudo systemctl stop livekit-docker
4. Prerequisites:
• Make sure you have a domain and can set DNS records for subdomains that point to your VM.
• This deployment uses Docker Compose and Caddy to automatically provision TLS certificates through Let's Encrypt or ZeroSSL, which keeps things secure and smooth.
5. Firewall Configuration:
• Don't forget to open the necessary ports on your Azure VM firewall. For example, the SIP server requires ports 5060 and 10000–20000.
If you'd like more detailed deployment scripts or further guidance, please check out the LiveKit VM deployment documentation. And of course, feel free to reach out if you have any questions or need a hand—I’m here to support you every step of the way!
Sources: Deploy to a VM | LiveKit Docs | Self-hosted SIP server | LiveKit Docsfast-hairdresser-13908
10/14/2025, 8:10 AMtall-airline-16756
10/14/2025, 8:11 AMyour-domain.com with your actual domain:
npx @livekit/generate-config your-domain.com
• This will create a folder named after your domain, which will include these important files:
• caddy.yaml
• docker-compose.yaml
• livekit.yaml
• redis.conf
• init_script.sh or cloud_init.xxxx.yaml
2. Use the Files:
• If you're working with Azure, you can use the cloud_init.xxxx.yaml file by copying its contents into the "User data" field when creating your VM.
• Alternatively, you can take the init_script.sh file, transfer it to your VM, and run sudo ./init_script.sh after connecting via SSH.
If you have any questions or need a hand with any of these steps, please don’t hesitate to reach out. I’m here to support you!
Sources: Deploy to a VM | LiveKit Docs | Running LiveKit on AWS | Running LiveKit on AWSfast-hairdresser-13908
10/14/2025, 8:11 AMtall-airline-16756
10/14/2025, 8:12 AM