Configurable Emby image, enable mappable devices

This commit is contained in:
David Stephens 2024-02-25 15:21:15 +00:00
parent 746c930b92
commit 92657ed319
2 changed files with 8 additions and 1 deletions

View file

@ -26,3 +26,9 @@ emby_memory: 1g
# docker
emby_container_name: emby
emby_image: emby/embyserver
emby_image_tag: beta
# Device mappings for the docker container. E.g. To enable hardware transcoding:
# emby_devices:
# - "/dev/dri:/dev/dri"

View file

@ -11,7 +11,7 @@
- name: Emby Docker Container
community.docker.docker_container:
name: "{{ emby_container_name }}"
image: emby/embyserver
image: "{{ emby_image }}:{{ emby_image_tag }}"
pull: true
volumes:
- "{{ emby_config_directory }}:/config:rw"
@ -20,6 +20,7 @@
ports:
- "{{ emby_port_http }}:8096"
- "{{ emby_port_https }}:8920"
devices: "{{ emby_devices | default(omit) }}"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ emby_user_id }}"