26 lines
583 B
YAML
26 lines
583 B
YAML
|
---
|
||
|
- 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
|