Skip to content

bazarr

Bazarr - subtitle management.

bazarr

Prepare

podman pull lscr.io/linuxserver/bazarr:latest
mkdir -p $HOME/apps/{variables,container_data}
touch $HOME/apps/variables/bazarr.env
mkdir -p $HOME/apps/container_data/bazarr

Edit environment file

Edit the environment file and paste your default values for this service:

nano $HOME/apps/variables/bazarr.env

Example contents:

PUID=1025
PGID=1000
TZ=Europe/Athens

Installation

touch $HOME/.config/containers/systemd/bazarr.container
# bazarr.container
[Unit]
Description=bazarr
[Container]
ContainerName=bazarr
HostName=bazarr
AutoUpdate=registry
Image=lscr.io/linuxserver/bazarr:latest
Network=skynet.network
DNS=10.0.0.250
EnvironmentFile=/$HOME/apps/variables/bazarr.env
Volume=/$HOME/apps/container_data/bazarr:/config
Volume=/mnt/poseidon/media/movies:/movies
Volume=/mnt/poseidon/media/tvshows:/tv
Volume=/mnt/poseidon/media/anime:/anime
#linuxserver.io specific
UIDMap=1025:0:1
UIDMap=0:1:1025
#UIDMap=1026:1026:524288
[Service]
Restart=always
TimeoutStartSec=300

[Install]
WantedBy=default.target

Configuration of Nginx (Reverse Proxy)

Create nginx conf.

touch /$HOME/apps/container_data/nginx/bazarr.conf

Configuration for nginx conf for port 80.

server {
  listen 80;
  server_name subtitles.skynet.lan;
  access_log /var/log/nginx/bazarr_access.log;
  error_log /var/log/nginx/bazarr_error.log;
  location / {
    proxy_pass http://bazarr:6767;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}

Restart Nginx

systemctl --user restart nginx

Usage

Open http://subtitles.skynet.lan

Troubleshooting

Check Nginx and container logs:

journalctl --user -u nginx -n 200
podman logs -f bazarr