Bazarr support

This commit is contained in:
Koldo Aingeru 2019-09-25 21:07:13 +02:00
parent 8282c5823c
commit d91f62bf7a
7 changed files with 66 additions and 1 deletions

View file

@ -12,7 +12,7 @@ Ansible config and a bunch of Docker containers.
* Any number of Samba shares or NFS exports for you to store your stuff
* A BitTorrent client
* A Usenet downloader
* Various media management tools - Sonarr, Sickchill, CouchPotato, Radarr
* Various media management tools - Sonarr, Sickchill, CouchPotato, Radarr. Bazarr
* Media streaming via Plex or Emby
* Music streaming with Airsonic
* An RSS newsfeed reader - Miniflux
@ -29,6 +29,7 @@ Ansible config and a bunch of Docker containers.
### Docker Containers Used
* [Airsonic](https://airsonic.github.io/) - catalog and stream music
* [Bazarr](https://github.com/morpheus65535/bazarr) - companion to Radarr and Sonarr for downloading subtitles
* [Bitwarden_rs](https://github.com/dani-garcia/bitwarden_rs) - Self-Hosting port of password manager
* [Cloudflare DDNS](https://hub.docker.com/r/joshuaavalon/cloudflare-ddns/) - automatically update Cloudflare with your IP address
* [CouchPotato](https://couchpota.to/) - for downloading and managing movies

View file

@ -0,0 +1,15 @@
# Bazarr subtitle downloader
Homepage: [https://github.com/morpheus65535/bazarr](https://github.com/morpheus65535/bazarr)
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.
## Usage
Set `bazarr_enabled: true` in your `group_vars/all.yml` file.
## Specific Configuration
Follow the [Wiki](https://github.com/morpheus65535/bazarr/wiki) for conecting to Sonarr and Radarr.

View file

@ -5,6 +5,7 @@ By default, applications can be found on the ports listed below.
| Application | Port | Notes |
|-----------------|--------|-----------|
| Couchpotato | 5050 | |
| Bazarr | 6767 | |
| Bitwarden "hub" | 3012 | Web Not. |
| Bitwarden | 19080 | HTTP |
| Duplicati | 8200 | |

View file

@ -37,6 +37,8 @@ couchpotato_enabled: false
radarr_enabled: false
get_iplayer_enabled: false
jackett_enabled: false
bazarr_enabled: false
# Music
airsonic_enabled: false
@ -373,6 +375,16 @@ radarr_data_directory: "{{ docker_home }}/radarr"
radarr_user_id: 0
radarr_group_id: 0
###
### Bazarr
###
bazarr_available_externally: "false"
bazarr_data_directory: "{{ docker_home }}/bazarr/config"
bazarr_tv_directory: "{{ tv_root }}"
bazarr_movies_directory: "{{ movies_root }}"
bazarr_user_id: 0
bazarr_group_id: 0
###
### Couchpotato

View file

@ -171,3 +171,8 @@
- import_tasks: tasks/mosquitto.yml
when: (mosquitto_enabled | default(False))
tags: mosquitto
- import_tasks: tasks/bazarr.yml
when: (bazarr_enabled | default(False))
tags: bazarr

30
tasks/bazarr.yml Normal file
View file

@ -0,0 +1,30 @@
---
- name: Create Bazarr Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ bazarr_data_directory }}"
- name: Bazarr
docker_container:
name: bazarr
image: linuxserver/bazarr
pull: true
volumes:
- "{{ bazarr_tv_directory }}:/tv:rw"
- "{{ bazarr_movies_directory }}:/movies:rw"
- "{{ bazarr_data_directory }}:/config:rw"
ports:
- "6767:6767"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ bazarr_user_id }}"
PGID: "{{ bazarr_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "bazarr"
traefik.frontend.rule: "Host:bazarr.{{ ansible_nas_domain }}"
traefik.enable: "{{ bazarr_available_externally }}"
traefik.port: "6767"

View file

@ -180,6 +180,7 @@ onDemand = false # create certificate when container is created
# we request a certificate for everything, because why not.
sans = ["airsonic.{{ ansible_nas_domain }}",
"bazarr.{{ ansible_nas_domain }}",
"bitwarden.{{ ansible_nas_domain }}",
"couchpotato.{{ ansible_nas_domain }}",
"duplicati.{{ ansible_nas_domain }}",