Run jellyfin

This commit is contained in:
Ivan R. 2024-10-25 20:10:23 +05:00
parent 7148e3d514
commit ada4e31472
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
4 changed files with 44 additions and 0 deletions

5
jellyfin.yml Normal file
View file

@ -0,0 +1,5 @@
---
- hosts: webservers
roles:
- name: jellyfin
server_url: https://jf.comfycamp.space

View file

@ -79,6 +79,9 @@ frontend www
acl host_git hdr(host) -i git.comfycamp.space
use_backend forgejo if host_git
acl host_jellyfin hdr(host) -i jf.comfycamp.space
use_backend jellyfin if host_jellyfin
acl host_grafana hdr(host) -i grafana.comfycamp.space
use_backend grafana if host_grafana
@ -172,3 +175,7 @@ backend nextcloud
backend mta_sts
mode http
server s1 mta-sts-1:8080 check
backend jellyfin
mode http
server s1 jellyfin:8096 check

View file

@ -0,0 +1,7 @@
---
argument_specs:
main:
options:
server_url:
type: str
required: true

View file

@ -0,0 +1,25 @@
---
- name: Create jellyfin volumes
become: true
community.docker.docker_volume:
name: "{{ item }}"
loop:
- jellyfin-cache
- jellyfin-config
- name: Run jellyfin
become: true
community.docker.docker_container:
name: jellyfin
image: jellyfin/jellyfin:10.9.11
networks:
- name: haproxy
user: "1000:1000"
volumes:
- jellyfin-cache:/cache
- jellyfin-config:/config
- /mnt/hdd/jellyfin:/media
devices:
- /dev/dri/
env:
JELLYFIN_PublishedServerUrl: "{{ server_url }}"
restart_policy: unless-stopped