mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 10:56:52 +00:00
* feat(transcode): add VA-API hardware acceleration support * fix(docker): switch to jellyfin-ffmpeg 8.1.2-5 for VA-API support * fix(transcode): probe hardware encoder usability to skip uninitialized drivers * ci(release): add workflow_dispatch trigger with custom tag input * fix(transcode): use 256x256 frame dimension for encoder usability probe * feat(docker): add hwaccel transcoding compose presets matching immich * docs: add hardware transcoding documentation and quickstart references * feat(transcode): prioritize h264_vaapi before h264_qsv on Linux * fix(docker): extend device permission loop to rkmpp and wsl accelerator nodes
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg18
|
|
container_name: shumai_postgres
|
|
environment:
|
|
POSTGRES_USER: shumai
|
|
POSTGRES_PASSWORD: shumai_password
|
|
POSTGRES_DB: shumai_db
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/18/docker
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U shumai -d shumai_db']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
shumai:
|
|
image: shumaione/shumai:latest
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
security_opt:
|
|
- apparmor=unconfined
|
|
- seccomp=unconfined
|
|
container_name: shumai_app
|
|
ports:
|
|
- '3000:3000'
|
|
volumes:
|
|
- ./data:/app/data
|
|
# Hardware Acceleration (NVENC / QuickSync / VA-API / RKMPP)
|
|
# Uncomment the extends section below for hardware acceleration:
|
|
# extends:
|
|
# file: hwaccel.transcoding.yaml
|
|
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
|
|
environment:
|
|
# Database Configuration
|
|
DATABASE_URL: postgres://shumai:shumai_password@shumai_postgres:5432/shumai_db?search_path=public&sslmode=disable
|
|
|
|
# Server Configuration
|
|
SHUMAI_SERVER_PORT: 3000
|
|
|
|
# S3 Configuration
|
|
STORAGE_BACKEND: local
|
|
AWS_ENDPOINT_URL_S3: http://localhost:3000
|
|
|
|
# Better Auth
|
|
BETTER_AUTH_SECRET: qSxs9DxzHDZBbeeTNPEwBuspYwipBqz5Gk5XdBjNhWw=
|
|
|
|
# Sandbox Configuration
|
|
ENABLE_WEAKER_NESTED_SANDBOX: 'true'
|
|
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
postgres_data:
|