Commit 12ccd9bf authored by Nick Busey's avatar Nick Busey

Adding Jellyfin

parent ae52ea36
Pipeline #46908381 passed with stages
in 1 minute and 5 seconds
......@@ -59,6 +59,7 @@ If you have the latest version of Vagrant and Virtual Box setup you can demo thi
* [InfluxDB](https://www.influxdata.com/time-series-platform/influxdb/) - Time series data storage
* [Inventario](https://gitlab.com/NickBusey/inventario) - Home inventory management
* [Jackett](https://github.com/Jackett/Jackett) - API Support for your favorite torrent trackers (helps Sonarr and Radarr)
* [Jellyfin](https://github.com/jellyfin/jellyfin) - The Free Software Media System
* [Kibitzr](https://kibitzr.github.io/) - IFTTT replacement
* [Mashio](https://gitlab.com/NickBusey/mashio) - Home brewery management software
* [Matomo](https://matomo.org/) - Web analytics
......
# Jellyfin
[Jellyfin](https://github.com/jellyfin/jellyfin) is a media server. Just point it at your NAS collections of Movies and TV and you're off to the races.
## Access
It is available at [https://jellyfin.{{ domain }}/](https://jellyfin.{{ domain }}/) or [http://jellyfin.{{ domain }}/](http://jellyfin.{{ domain }}/)
{% if enable_tor %}
It is also available via Tor at [http://jellyfin.{{ tor_domain }}/](http://jellyfin.{{ tor_domain }}/)
{% endif %}
......@@ -24,6 +24,7 @@ enable_homeassistant: False
enable_homedash: False
enable_inventario: False
enable_jackett: False
enable_jellyfin: False
enable_kibitzr: False
enable_mashio: False
enable_matomo: False
......@@ -66,6 +67,7 @@ enabled_services:
homedash: "{{ enable_homedash }}"
inventario: "{{ enable_inventario }}"
jackett: "{{ enable_jackett }}"
jellyfin: "{{ enable_jellyfin }}"
kibitzr: "{{ enable_kibitzr }}"
mashio: "{{ enable_mashio }}"
matomo: "{{ enable_matomo }}"
......@@ -150,6 +152,7 @@ services:
- homedash
- inventario
- jackett
- jellyfin
- mashio
- matomo
- miniflux
......
......@@ -59,6 +59,7 @@ enable_homeassistant: {{enable_homeassistant}}
enable_homedash: {{enable_homedash}}
enable_inventario: {{enable_inventario}}
enable_jackett: {{enable_jackett}}
enable_jellyfin: {{enable_jellyfin}}
enable_kibitzr: {{enable_kibitzr}}
enable_mashio: {{enable_mashio}}
enable_matomo: {{enable_matomo}}
......
......@@ -3,7 +3,7 @@ version: '3'
services:
restore:
image: lobaro/restic-backup-docker:v1.0
image: lobaro/restic-backup-docker
environment:
- RESTIC_REPOSITORY={{ s3_path }}
- AWS_ACCESS_KEY_ID={{ s3_access_code }}
......
---
- name: Make jellyfin directory.
file:
path: "/var/homelabos/jellyfin"
state: directory
- name: Copy jellyfin docker-compose.yml file into place.
template:
src: docker-compose.jellyfin.yml.j2
dest: /var/homelabos/jellyfin/docker-compose.jellyfin.yml
vars:
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Configure jellyfin systemd service.
template: src=jellyfin.service dest=/etc/systemd/system/jellyfin.service
- name: Start jellyfin
systemd:
name: jellyfin
enabled: "yes"
daemon-reload: "yes"
state: started
...
---
version: '3'
networks:
traefik_network:
external:
name: homelabos_traefik
services:
# Media Server
jellyfin:
image: jellyfin/jellyfin
restart: unless-stopped
networks:
- traefik_network
volumes:
- /var/homelabos/jellyfin:/config
- /mnt/nas:/mnt/nas
- /mnt/nas/tmp:/config/transcoding-temp
labels:
- "traefik.enable=true"
- "traefik.docker.network=homelabos_traefik"
- "traefik.http.frontend.rule=Host:jellyfin.{{ domain }}"
- "traefik.http.protocol=http"
- "traefik.http.port=8096"
- "traefik.tor.frontend.rule=Host:jellyfin.{{ tor_domain }}"
- "traefik.tor.protocol=http"
- "traefik.tor.port=8096"
\ No newline at end of file
[Unit]
Description=HomelabOS jellyfin Service
After=docker.service
Requires=docker.service
[Service]
TimeoutSec=infinity
Restart=always
RestartSec=3
ExecStartPre=/usr/bin/docker-compose -f /var/homelabos/jellyfin/docker-compose.jellyfin.yml -p jellyfin down
ExecStart=/usr/bin/docker-compose -f /var/homelabos/jellyfin/docker-compose.jellyfin.yml -p jellyfin up
ExecStop=/usr/bin/docker-compose -f /var/homelabos/jellyfin/docker-compose.jellyfin.yml -p jellyfin stop
[Install]
WantedBy=multi-user.target
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment