This repository has been archived on 2025-04-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
jellyfin/templates/docker-compose.j2
2025-01-24 08:08:34 +01:00

26 lines
648 B
Django/Jinja

# {{ ansible_managed }}
services:
jellyfin:
image: {{ image_tag }}
container_name: jellyfin
user: {{ ansible_user_uid }}:{{ ansible_user_gid }}
group_add:
- 44 # video group
- 105 # render group
volumes:
- {{ configuration_dir }}:/config
- {{ cache_dir }}:/cache
- type: bind
source: {{ media_dir }}
target: /media
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
restart: always
ports:
- 8096:8096/tcp
- 1900:1900/udp
- 7359:7359/udp
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0