2021-11-11 00:23:53 -06:00
|
|
|
# vim:ft=ansible:
|
|
|
|
- name: docker deploy jellyfin
|
2021-11-18 19:16:30 -06:00
|
|
|
docker_compose:
|
|
|
|
project_name: jellyfin
|
|
|
|
definition:
|
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
jellyfin:
|
|
|
|
image: jellyfin/jellyfin:latest
|
|
|
|
container_name: jellyfin
|
2021-12-11 16:01:21 -06:00
|
|
|
restart: unless-stopped
|
2021-11-18 19:16:30 -06:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- capabilities: [ gpu ]
|
|
|
|
environment:
|
|
|
|
NVIDIA_DRIVER_CAPABILITIES: all
|
|
|
|
NVIDIA_VISIBLE_DEVICES: all
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
aliases:
|
|
|
|
- jellyfin
|
2021-12-11 21:50:20 -06:00
|
|
|
ports:
|
|
|
|
- 8096:8096
|
2021-11-18 19:16:30 -06:00
|
|
|
volumes:
|
|
|
|
- /data/jellyfin/config:/config
|
|
|
|
- /data/jellyfin/cache:/cache
|
|
|
|
- /data/shared/media:/media
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: yes
|
|
|
|
name: web
|
2021-11-11 00:23:53 -06:00
|
|
|
tags: [ docker, jellyfin ]
|