Docker-Compose method - Recommended
Install Docker
Update the repo to get latest versions
sudo apt update
Install the latest version
sudo apt install docker.io
Set Docker to start on startup
sudo systemctl enable --now docker
Give your user permissions to docker, replacing user
with your username
sudo usermod -aG docker user
Once you have run this command close and reopen your session if you accessing remotely. This is to apply the permissions in the above step
Test it has installed correctly by getting the docker version
docker --version
Docker Compose
I also install docker-compose as some dockers need you to compose from a yml file. This downloads v2.16.0, just change this if the version updates to a later version
sudo curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Give permissions to this
sudo chmod +x /usr/local/bin/docker-compose
Test it has installed correctly by getting the docker-compose version
docker-compose --version
Install Bazarr
I keep all my dockers in a dockers folder in my home directory. If it doesn’t exist already, create this folder:-
mkdir ~/dockers
Now create a folder for Bazarr to live in.
mkdir ~/dockers/bazarr
Create a folder for the config
mkdir ~/dockers/bazarr/config
Change directory to this folder
cd ~/dockers/bazarr
Create a docker-compose.yml file
nano docker-compose.yml
Paste the following. Change the first 6767
part of 6767:6767
if you want it to listen on an alternative port to port 6767. Also change the first /media
in /media:/media
to where your files are stored for bazarr to save the subtitles.
---
version: "2.1"
services:
bazarr:
image: ghcr.io/linuxserver/bazarr
container_name: bazarr
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./config:/config
- /media:/media
ports:
- 6767:6767
restart: unless-stopped
Save the file with ctl + x, then y to save.
Run the docker-compose file with the following:-
docker-compose up -d
- Browse to the server ip and the port mentioned in the compose file, eg http://1.1.1.1:6767 and you should get the default dashboard.
Manual Method
Install Bazarr
Update the apt list
sudo apt update
Download the requirements
sudo apt-get install python3-pip python3-distutils
Download the latest version
wget https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip
Unzip to bazarr folder
unzip bazarr.zip -d bazarr
Change directory to the bazarr folder
cd bazarr
Install bazarr
python3 -m pip install -r requirements.txt
Move the bazarr folder to the /opt/
folder
cd ..
sudo mv bazarr /opt/
Change ownership of the folder
sudo chown -R $user:$user /opt/bazarr
Autostart
Create bazarr.service
file.
sudo nano /etc/systemd/system/bazarr.service
Paste the below, changing the user
and the group
to match your user/group
[Unit]
Description=Bazarr Daemon
After=syslog.target network.target
# After=syslog.target network.target sonarr.service radarr.service
[Service]
WorkingDirectory=/opt/bazarr/
User=your_user(username of your choice)
UMask=0002
Restart=on-failure
RestartSec=5
Type=simple
ExecStart=/usr/bin/python3 /opt/bazarr/bazarr.py
KillSignal=SIGINT
TimeoutStopSec=20
SyslogIdentifier=bazarr
ExecStartPre=/bin/sleep 30
[Install]
WantedBy=multi-user.target
Enable the systemd with
sudo systemctl enable bazarr
Start the service with
sudo systemctl start bazarr
First run
Open your browser and go to http://serverip:6767/ and you will get the first run wizard.