Configuration Methods
There are three main ways to configure Lavalink:Config File
The easiest way to configure Lavalink using
application.ymlEnvironment Variables
Configure Lavalink using environment variables for containerized deployments
Config Server
Advanced feature for managing multiple Lavalink servers centrally
Config File
This is the most common and straightforward method. You create a file calledapplication.yml in the directory where you start your Lavalink server. This file contains all configuration options in YAML format.
Recommended for most users and simple deployments
Environment Variables
You can configure Lavalink using environment variables, which is particularly useful for:- Docker/container deployments
- Cloud platforms
- CI/CD pipelines
- Keeping sensitive information separate from config files
server.port becomes SERVER_PORT.
See the environment variables documentation for the complete list and examples.
Config Server
The Lavalink Config Server allows you to manage the configuration of multiple Lavalink servers from a centralized location. This is useful for:- Managing multiple Lavalink instances
- Centralized configuration updates
- Git-based configuration management
- Profile-based configurations
Configuration Priority
You can use a combination of configuration methods. Environment variables take precedence over the
application.yml file.- Default values
application.ymlfile- Environment variables
- Config Server (if configured)
Quick Start Examples
- Config File
- Environment Variables
- Docker
Create
application.yml in your Lavalink directory:Advanced Configuration Topics
Route Planner
Configure IP rotation strategies for avoiding rate limits
IPv6 Setup
Setup guides for IPv6 networking across different providers
Next Steps
Review Options
Explore the application.yml reference to understand all available options