Configuration Methods
Command-Line Flags
Pass options directly when starting the server
Environment Variables
Configure via environment variables (ideal for Docker)
YAML Configuration
Use a structured configuration file
Command-Line Flags
Command-line flags are passed directly when starting the TeamSpeak server binary. This method is useful for quick testing or when you need to override specific settings.View all available command-line options by running
./tsserver --helpEnvironment Variables
Environment variables provide a clean way to configure the server, especially in containerized environments. Each command-line flag has a corresponding environment variable.- Docker Compose
- Shell Export
- Systemd Service
YAML Configuration
The YAML configuration file provides a structured, version-controllable way to manage complex server configurations. This is the recommended method for production deployments.tsserver.yaml
See the YAML Configuration page for the complete file structure and all available options.
Configuration Priority
When multiple configuration methods are used, the server applies them in the following order of precedence (highest to lowest):- Command-line flags - Highest priority, overrides all other methods
- Environment variables - Overrides YAML file settings
- YAML configuration file - Base configuration
- Default values - Used when no configuration is provided
Writing Configuration to File
You can generate a YAML configuration file from your current settings (command-line flags and environment variables) using the--write-config-file flag:
tsserver.yaml file with your current configuration.
Next Steps
Server Settings
Configure core server parameters
Database Configuration
Set up SQLite or MariaDB
Ports & Networking
Configure network ports and bindings
YAML Reference
Complete YAML file structure