# Overlay for hosts with a VA-API-capable GPU passed through (Intel # QSV, AMD VCN/VCE, any VA-API driver). PhotoPrism's :latest image # ships VA-API-enabled ffmpeg; this file just wires the device + group # membership + encoder selection. Layered in by the deploy script on # hosts where /dev/dri/renderD128 exists. # # Usage: # docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d services: photoprism: devices: - /dev/dri/renderD128:/dev/dri/renderD128 - /dev/dri/card0:/dev/dri/card0 # Match host GIDs (render=992, video=44 on Debian). PhotoPrism's # container user (PP_UID:PP_GID, typically 33:10000) is not in # these groups by default; group_add grants access to the device # nodes without changing the primary user. group_add: - "992" - "44" environment: PHOTOPRISM_FFMPEG_ENCODER: ${PP_FFMPEG_ENCODER:-vaapi} PHOTOPRISM_FFMPEG_BITRATE: ${PP_FFMPEG_BITRATE:-32}