infrastructure/docker-compose.jellyfin.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

services:
# Jellyfin
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
profiles:
- jellyfin
restart: on-failure:5
depends_on:
- caddy
volumes:
- jellyfin_config:/config
- jellyfin_data_movies:/movies:rw
- jellyfin_data_series:/series:rw
- jellyfin_data_documentaries:/documentaries:rw
- jellyfin_data_musics:/musics:rw
- jellyfin_data_personal:/personal:rw
- jellyfin_cache:/cache
# Hardware acceleration (For Intel and AMD GPUs)
devices:
- /dev/dri:/dev/dri
networks:
- infra-network
security_opt:
- no-new-privileges:true
volumes:
jellyfin_config:
name: jellyfin_config
jellyfin_data_movies:
name: jellyfin_data_movies
jellyfin_data_series:
name: jellyfin_data_series
jellyfin_data_documentaries:
name: jellyfin_data_documentaries
jellyfin_data_musics:
name: jellyfin_data_musics
jellyfin_data_personal:
name: jellyfin_data_personal
jellyfin_cache:
name: jellyfin_cache