infrastructure/infrastructure/jellyfin/docker-compose.jellyfin.yml
Bensuperpc a265603ff6 Fix docker perms
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2024-09-07 18:46:13 +02:00

44 lines
1.1 KiB
YAML

services:
# Jellyfin
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
profiles:
- jellyfin
restart: on-failure:5
user: 1000:1000
depends_on:
- caddy
env_file:
- ./jellyfin/env/jellyfin.env
volumes:
- jellyfin_config:/config
- jellyfin_data_movies:/movies:rw
- jellyfin_data_series:/series:rw
- jellyfin_data_documentaries:/documentaries:rw
- jellyfin_data_musics:/musics:rw
- public_data:/public: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
public_data:
name: public_data
jellyfin_cache:
name: jellyfin_cache