Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added jellyseerr #413

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ This is a partial list of roles available via Community; once the repo is instal
- **invoiceninja**
- **[jdownloader2](../../wiki/JDownloader2)** - [JDownloader2](https://github.com/jlesage/docker-jdownloader-2) Self-hosted free, open-source download management tool with GUI website frontend.
- **jellyfin** - [jellyfin](https://github.com/jellyfin/jellyfin) emby fork
- **jellyseerr** - [jellyseerr](https://github.com/Fallenbagel/jellyseerr) overseerr fork
- **kitana** - A responsive Plex plugin web frontend
- **[komga](https://komga.org/)** - comics server and online reader (similar to ubooquity, but actively developed as of today); to get the original admin username and passowrd, type docker logs komga and follow the [help](https://komga.org/installation/user-accounts.html#automatic-mode-default)
- **lazylibrarian** - (uses calibre-rdp db)
Expand Down
1 change: 1 addition & 0 deletions community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- { role: influxdb, tags: ['influxdb'] }
- { role: invoiceninja, tags: ['invoiceninja'] }
- { role: jellyfin, tags: ['jellyfin'] }
- { role: jellyseerr, tags: ['jellyseerr'] }
- { role: jfa-go, tags: ['jfa-go', 'jellyfinaccounts', 'jellyfinaccountsgo'] }
- { role: jirafeau, tags: ['jirafeau'] }
- { role: kcptun-client, tags: ['kcptun-client'] }
Expand Down
64 changes: 64 additions & 0 deletions roles/jellyseerr/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#########################################################################
# Title: Community: jellyseerr #
# Author(s): JackDallas, Thundernerd #
# URL: https://github.com/Cloudbox/Community #
# Docker Image(s): fallenbagel/jellyseerr #
# -- #
# Part of the Cloudbox project: https://cloudbox.works #
#########################################################################
# GNU General Public License v3.0 #
#########################################################################
---

- name: "Set DNS Record on CloudFlare"
include_role:
name: cloudflare-dns
vars:
record: "{{ jellyseerr.subdomain|default('jellyseerr',true) }}"
when: (cloudflare_enabled) and not (jellyseerr.direct_domain|default(false,true))

- name: "Set DNS Record on CloudFlare"
include_role:
name: cloudflare-dns
vars:
record: "{{ item }}"
with_items:
- "{{ user.domain }}"
- "www"
when: (cloudflare_enabled) and (jellyseerr.direct_domain|default(false,true))

- name: Stop and remove any existing container
docker_container:
name: jellyseerr
state: absent

- name: Create jellyseerr directories
file: 'path={{ item }} state=directory mode=0775 owner={{ user.name }} group={{ user.name }}'
with_items:
- /opt/jellyseerr

- name: Create and start container
docker_container:
name: jellyseerr
image: "fallenbagel/jellyseerr"
pull: yes
published_ports:
- "5055:5055"
user: "{{ uid }}:{{ gid }}"
env:
VIRTUAL_HOST: "jellyseerr.{{ user.domain }}"
VIRTUAL_PORT: "5055"
LETSENCRYPT_HOST: "jellyseerr.{{ user.domain }}"
LETSENCRYPT_EMAIL: "{{ user.email }}"
TZ: "{{ tz }}"
volumes:
- "/opt/jellyseerr:/app/config"
labels:
"com.github.cloudbox.cloudbox_managed": "true"
networks:
- name: cloudbox
aliases:
- jellyseerr
purge_networks: yes
restart_policy: unless-stopped
state: started