Skip to content

Repository files navigation

Bazarr

Build Status Last Commit OCI Pulls

Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.

Port 6767
Registry ghcr.io/daemonless/bazarr
Source https://github.com/morpheus65535/bazarr
Website https://www.bazarr.media/

Version Tags

Tag Description Best For
latest Upstream Binary. Built from official release. Most users — recommended.
pkg FreeBSD Quarterly. Uses stable, tested packages. Production stability.
pkg-latest FreeBSD Latest. Rolling package updates. Staying current.

Prerequisites

Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions.

Deployment

Podman Compose

services:
  bazarr:
    image: "ghcr.io/daemonless/bazarr:latest"
    container_name: bazarr
    environment:
      - PUID=1000  # User ID for the application process
      - PGID=1000  # Group ID for the application process
      - TZ=UTC  # Timezone for the container
    volumes:
      - "/path/to/containers/bazarr:/config"
      - "/path/to/movies:/movies" # optional
      - "/path/to/tv:/tv" # optional
    ports:
      - "6767:6767"
    # always (not unless-stopped) so FreeBSD's podman rc.d auto-starts it at boot
    restart: always

Save as compose.yaml, then run podman-compose up -d.

AppJail Director

.env:

# .env

DIRECTOR_PROJECT=bazarr
PUID=1000
PGID=1000
TZ=UTC

appjail-director.yml:

# appjail-director.yml

options:
  - virtualnet: ':<random> default'
  - nat:
services:
  bazarr:
    name: bazarr
    options:
      - container: 'args:--pull'
      - expose: '6767:6767 proto:tcp'
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
    volumes:
      - bazarr: /config
      - movies: /movies
      - tv: /tv
volumes:
  bazarr:
    device: '/path/to/containers/bazarr'
  movies:
    device: 'movies'
  tv:
    device: 'tv'

Makejail:

# Makejail

ARG tag=latest

OPTION container=boot
OPTION overwrite=force
OPTION from=ghcr.io/daemonless/bazarr:${tag}

Save the files above, then run appjail-director up.

Warning

Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.

To avoid exposing ports, just remove the expose option in your appjail-director.yml or from your command-line arguments.

Podman CLI

podman run -d --name bazarr \
  -p 6767:6767 \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -v /path/to/containers/bazarr:/config \
  -v /path/to/movies:/movies # optional \
  -v /path/to/tv:/tv # optional \
  ghcr.io/daemonless/bazarr:latest

Save as run.sh, then run sh run.sh.

AppJail

appjail oci run -Pd \
  -o overwrite=force \
  -o container="args:--pull" \
  -o virtualnet=":<random> default" \
  -o nat \
  -o expose="6767:6767 proto:tcp" \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=UTC \
  -o fstab="/path/to/containers/bazarr /config <pseudofs>" \
  -o fstab="/path/to/movies /movies <pseudofs>" \ # optional
  -o fstab="/path/to/tv /tv <pseudofs>" \ # optional
  ghcr.io/daemonless/bazarr:latest bazarr

Save the files above, then run sh run.sh.

Warning

Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.

To avoid exposing ports, just remove the expose option in your appjail-director.yml or from your command-line arguments.

Bastille

Warning

Bastille's OCI support is experimental. It requires buildah and shares the host network stack (inherit). Mount volumes with --volume HOST JAIL; without it, image-declared volumes are stored under ${bastille_volumesdir}/${jail}.

services:
  bazarr:
    name: bazarr
    image: "ghcr.io/daemonless/bazarr:latest"
    network:
      - mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
    volumes:
      - "/path/to/containers/bazarr:/config"
      - "/path/to/movies:/movies"
      - "/path/to/tv:/tv"

Save as bastille-compose.yml, then run bastille up. Or via CLI:

bastille create -O \
  --env PUID=1000 \
  --env PGID=1000 \
  --env TZ=UTC \
  --volume /path/to/containers/bazarr /config \
  --volume /path/to/movies /movies \
  --volume /path/to/tv /tv \
  bazarr ghcr.io/daemonless/bazarr:latest inherit

Ansible

- name: Deploy bazarr
  containers.podman.podman_container:
    name: bazarr
    image: "ghcr.io/daemonless/bazarr:latest"
    state: started
    restart_policy: always
    env:
      PUID: "1000"
      PGID: "1000"
      TZ: "UTC"
    ports:
      - "6767:6767"
    volumes:
      - "/path/to/containers/bazarr:/config"
      - "/path/to/movies:/movies" # optional
      - "/path/to/tv:/tv" # optional

Save as bazarr-deploy.yaml, then run ansible-playbook bazarr-deploy.yaml.

Access at: http://localhost:6767

Parameters

Environment Variables

Variable Default Description
PUID 1000 User ID for the application process
PGID 1000 Group ID for the application process
TZ UTC Timezone for the container

Volumes

Path Description
/config Configuration directory
/movies Movie library (should match Radarr) (Optional)
/tv TV library (should match Sonarr) (Optional)

Ports

Port Protocol Description
6767 TCP Web UI

Architectures: amd64 User: bsd (UID/GID via PUID/PGID, defaults to 1000:1000) Base: FreeBSD 15.1


Need help? Join our Discord community.

About

Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages