Migrate from emby to jellyfin

This commit is contained in:
Jake Howard 2020-04-30 21:45:03 +01:00
parent 974e0e8467
commit ceeba55a83
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 38 additions and 32 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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

View file

@ -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