Include jellyfin provisioning
This commit is contained in:
parent
9d49bcfa22
commit
b76c210390
10 changed files with 192 additions and 7 deletions
44
templates/jellyfin/docker-compose.j2
Normal file
44
templates/jellyfin/docker-compose.j2
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
networks:
|
||||
jellyfin-net:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: '{{ jellyfin_subnet }}'
|
||||
|
||||
services:
|
||||
jellyfin:
|
||||
image: {{ jellyfin_image_tag }}
|
||||
container_name: jellyfin
|
||||
user: {{ ansible_user_uid }}:{{ ansible_user_gid }}
|
||||
group_add:
|
||||
- 44 # video group
|
||||
- 105 # render group
|
||||
volumes:
|
||||
- {{ jellyfin_configuration_dir }}:/config
|
||||
- {{ jellyfin_cache_dir }}:/cache
|
||||
- type: bind
|
||||
source: {{ jellyfin_media_dir }}
|
||||
target: /media
|
||||
- /etc/passwd:/etc/passwd:ro
|
||||
- /etc/group:/etc/group:ro
|
||||
restart: always
|
||||
networks:
|
||||
jellyfin-net:
|
||||
expose:
|
||||
- {{ jellyfin_web_port }}/tcp
|
||||
devices:
|
||||
- /dev/dri/renderD128:/dev/dri/renderD128
|
||||
- /dev/dri/card0:/dev/dri/card0
|
||||
|
||||
nginx:
|
||||
image: nginx:mainline-alpine
|
||||
depends_on:
|
||||
- jellyfin
|
||||
restart: always
|
||||
networks:
|
||||
jellyfin-net:
|
||||
ipv4_address: '{{ jellyfin_nginx_ip }}'
|
||||
volumes:
|
||||
- '{{ jellyfin_app_dir }}/nginx.conf.d:/etc/nginx/conf.d'
|
||||
Loading…
Add table
Add a link
Reference in a new issue