35 lines
896 B
YAML
35 lines
896 B
YAML
# vim:ft=ansible:
|
|
- name: docker deploy jellyfin
|
|
docker_compose:
|
|
project_name: jellyfin
|
|
definition:
|
|
version: "2.1"
|
|
services:
|
|
jellyfin:
|
|
image: jellyfin/jellyfin:unstable
|
|
container_name: jellyfin
|
|
restart: unless-stopped
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- capabilities: [ gpu ]
|
|
environment:
|
|
NVIDIA_DRIVER_CAPABILITIES: all
|
|
NVIDIA_VISIBLE_DEVICES: all
|
|
networks:
|
|
web:
|
|
aliases:
|
|
- jellyfin
|
|
ports:
|
|
- 8096:8096
|
|
volumes:
|
|
- /data/jellyfin/config:/config
|
|
- /data/jellyfin/cache:/cache
|
|
- /data/shared/media:/media
|
|
networks:
|
|
web:
|
|
external: yes
|
|
name: web
|
|
tags: [ docker, jellyfin ]
|