Skip to content

Bazarr

Bazarr is a subtitle management application that integrates with Sonarr and Radarr. PrepArr automates Bazarr’s setup including database configuration, language selection, subtitle providers, and Sonarr/Radarr integration.

PrepArr supports two modes for Bazarr:

Set SERVARR_TYPE=bazarr to run PrepArr as a sidecar alongside a Bazarr container. PrepArr manages Bazarr’s config.yaml (PostgreSQL connection, API key) during init, then configures languages, providers, and integrations via the Bazarr API in sidecar mode.

Terminal window
SERVARR_TYPE=bazarr
BAZARR_URL=http://localhost:6767
BAZARR_API_KEY=your-bazarr-api-key
POSTGRES_HOST=postgres
POSTGRES_PASSWORD=postgres123
CONFIG_PATH=/config/bazarr-config.json

When running PrepArr alongside Sonarr or Radarr (SERVARR_TYPE=sonarr), you can also configure a remote Bazarr instance by setting BAZARR_URL and BAZARR_API_KEY. PrepArr will configure both the Servarr instance and the Bazarr instance.

Bazarr settings live under the bazarr key in the configuration file:

{
"bazarr": {
"languages": [
{ "code": "en", "name": "English" },
{ "code": "nl", "name": "Dutch" }
],
"providers": [
{ "name": "opensubtitlescom", "enabled": true }
],
"sonarr": {
"url": "http://sonarr:8989",
"apiKey": "your-sonarr-api-key"
},
"radarr": {
"url": "http://radarr:7878",
"apiKey": "your-radarr-api-key"
}
}
}

Define which languages Bazarr should search subtitles for:

FieldTypeRequiredDefaultDescription
codestringYesISO 639-1 language code (e.g., en, nl, fr)
namestringYesLanguage display name
enabledbooleanNotrueWhether to enable this language
{
"bazarr": {
"languages": [
{ "code": "en", "name": "English" },
{ "code": "nl", "name": "Dutch" },
{ "code": "fr", "name": "French" }
]
}
}

Configure where Bazarr downloads subtitles from:

FieldTypeRequiredDefaultDescription
namestringYesProvider name (e.g., opensubtitlescom, addic7ed)
enabledbooleanNotrueWhether to enable this provider
settingsobjectNo{}Provider-specific settings (credentials, etc.)
{
"bazarr": {
"providers": [
{ "name": "opensubtitlescom", "enabled": true },
{ "name": "addic7ed", "enabled": true }
]
}
}

Configure default subtitle behavior:

FieldTypeDefaultDescription
seriesTypestringhearing_impaired_preferredSeries subtitle type preference
movieTypestringhearing_impaired_preferredMovie subtitle type preference
searchOnUpgradebooleantrueSearch for subtitles when media is upgraded
searchOnDownloadbooleantrueSearch for subtitles when media is downloaded

Link Bazarr to your Sonarr and Radarr instances so it knows which media libraries to manage subtitles for:

{
"bazarr": {
"sonarr": {
"url": "http://sonarr:8989",
"apiKey": "your-sonarr-api-key"
},
"radarr": {
"url": "http://radarr:7878",
"apiKey": "your-radarr-api-key"
}
}
}

Both sonarr and radarr sections are optional — configure whichever services you use.

Unlike Servarr applications that use config.xml, Bazarr uses config.yaml. During init mode, PrepArr:

  1. Creates the bazarr PostgreSQL database and user
  2. Writes /config/config/config.yaml with the API key and PostgreSQL connection settings
  3. Exits so the Bazarr container can start with the prepared config

The sidecar then takes over to configure languages, providers, and integrations via the Bazarr API.

VariableDescription
BAZARR_URLBazarr base URL (default: http://localhost:6767 in standalone mode)
BAZARR_API_KEYBazarr API key for authentication

See Environment Variables for the full list.