25 lines
620 B
YAML
25 lines
620 B
YAML
- name: run jellyfin container
|
|
docker_container:
|
|
name: 'jellyfin'
|
|
image: linuxserver/jellyfin
|
|
volumes:
|
|
- "{{ data_folder }}/jellyfin:/config"
|
|
- "{{ media.tv }}:/data/tvshows"
|
|
- "{{ media.movies }}:/data/movies"
|
|
ports:
|
|
- "8096:8096"
|
|
- "8920:8920"
|
|
- "7359:7359/udp"
|
|
- "1900:1900/udp"
|
|
env:
|
|
PUID={{ puid }}
|
|
PGID={{ pgid }}
|
|
TZ={{ tz }}
|
|
devices:
|
|
- /dev/dri:/dev/dri
|
|
state: started
|
|
- name: copy jellyfin config to nginx
|
|
template:
|
|
src: jellyfin.conf.j2
|
|
dest: "{{ nginx_confd_folder }}/jellyfin.conf"
|
|
notify: reload nginx |