• 4 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: June 24th, 2023

help-circle


















  • eric@lemmy.catoLinux@lemmy.mlWhat's on your personal server?
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 months ago

    I used this guide https://www.redhat.com/sysadmin/quadlet-podman

    I have a folder on my in my home folder called containers symlinked to /etc/containers/systemd with my .container files. This is my jellyfin.container for using the Nvidia Quadro on my server.

    [Unit]
    Description=Podman - Jellyfin
    Wants=network-online.target
    After=network-online.target
    Requires=nvidia-ctk-generate.service
    After=nvidia-ctk-generate.service
    
    [Container]
    Image=lscr.io/linuxserver/jellyfin:latest
    AutoUpdate=registry
    ContainerName=jellyfin
    Environment=PUID=1000
    Environment=PGID=100
    Environment=TZ=America/St_Johns
    Environment=DOCKER_MODS=ghcr.io/gilbn/theme.park:jellyfin
    Environment=TP_THEME=dracula
    Volume=/home/eric/services/jellyfin:/config
    Volume=/home/eric/movies:/movies
    Volume=/home/eric/tv:/tv
    Volume=/home/eric/music:/music
    PublishPort=8096:8096
    PublishPort=8920:8920
    PublishPort=7359:7359/udp
    PublishPort=1900:1900/udp
    AddDevice=nvidia.com/gpu=all
    SecurityLabelDisable=true
    
    [Service]
    Restart=always
    TimeoutStartSec=900
    
    [Install]
    WantedBy=default.target
    

    I use sudo podman auto-update to update the images to utilize the AutoUpdate=registry option.