diff --git a/ansible/roles/intersect-docker/files/emby/docker-compose.yml b/ansible/roles/intersect-docker/files/emby/docker-compose.yml deleted file mode 100644 index 300d735..0000000 --- a/ansible/roles/intersect-docker/files/emby/docker-compose.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: "2.3" - -services: - emby: - image: linuxserver/emby:4.4.2.0-ls41 - container_name: emby - environment: - - PUID={{ docker_user.id }} - - PGID={{ docker_user.id }} - - TZ=Europe/London - volumes: - - ./config:/config - - /mnt/media/TV:/mnt/TV - - /mnt/media/Movies:/mnt/Movies - ports: - - 8096:8096 - restart: unless-stopped - labels: - - "traefik.enable=true" - - "traefik.http.routers.emby.rule=Host(`media.jakehoward.tech`)" - - "traefik.http.routers.emby.tls=true" - - "traefik.http.routers.emby.tls.certresolver=le" diff --git a/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml b/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml new file mode 100644 index 0000000..899429f --- /dev/null +++ b/ansible/roles/intersect-docker/files/jellyfin/docker-compose.yml @@ -0,0 +1,28 @@ +version: "2.3" + +services: + jellyfin: + image: linuxserver/jellyfin:v10.5.5-ls52 + container_name: jellyfin + environment: + - PUID={{ docker_user.id }} + - PGID={{ docker_user.id }} + - TZ=Europe/London + volumes: + - ./config:/config + - /mnt/media/TV:/mnt/TV + - /mnt/media/Movies:/mnt/Movies + tmpfs: + - /config/cache + - /config/log + ports: + - 8096:8096 + restart: unless-stopped + devices: + - /dev/dri/card0:/dev/dri/card0 + - /dev/dri/renderD128:/dev/dri/renderD128 + labels: + - "traefik.enable=true" + - "traefik.http.routers.jellyfin.rule=Host(`media.jakehoward.tech`)" + - "traefik.http.routers.jellyfin.tls=true" + - "traefik.http.routers.jellyfin.tls.certresolver=le" diff --git a/ansible/roles/intersect-docker/tasks/emby.yml b/ansible/roles/intersect-docker/tasks/jellyfin.yml similarity index 66% rename from ansible/roles/intersect-docker/tasks/emby.yml rename to ansible/roles/intersect-docker/tasks/jellyfin.yml index 0a4e85d..2725eb2 100644 --- a/ansible/roles/intersect-docker/tasks/emby.yml +++ b/ansible/roles/intersect-docker/tasks/jellyfin.yml @@ -1,24 +1,24 @@ -- name: Create emby directory +- name: Create jellyfin directory file: - path: /opt/emby + path: /opt/jellyfin state: directory owner: "{{ docker_user.name }}" mode: "{{ docker_compose_directory_mask }}" become: true -- name: Install emby compose file +- name: Install jellyfin compose file template: - src: files/emby/docker-compose.yml - dest: /opt/emby/docker-compose.yml + src: files/jellyfin/docker-compose.yml + dest: /opt/jellyfin/docker-compose.yml mode: "{{ docker_compose_file_mask }}" owner: "{{ docker_user.name }}" validate: /usr/bin/docker-compose -f %s config register: compose_file become: true -- name: Cycle emby container +- name: Cycle jellyfin container docker_compose: - project_src: /opt/emby + project_src: /opt/jellyfin pull: true remove_orphans: true remove_volumes: true diff --git a/ansible/roles/intersect-docker/tasks/main.yml b/ansible/roles/intersect-docker/tasks/main.yml index 8282bb9..1c2ab8d 100644 --- a/ansible/roles/intersect-docker/tasks/main.yml +++ b/ansible/roles/intersect-docker/tasks/main.yml @@ -4,9 +4,6 @@ - name: Install duplicati include: duplicati.yml -- name: Install emby - include: emby.yml - - name: Install folding-at-home include: folding-at-home.yml @@ -16,6 +13,9 @@ - name: Install gotify include: gotify.yml +- name: Install jellyfin + include: jellyfin.yml + - name: Install librespeed include: librespeed.yml