Stash-s6 container

:placard: Summary stash docker container with HWaccel and python management
:link: Repository GitHub - feederbox826/stash-s6: stashapp/stash docker rewrite

Features

  • non-root user support
    • PUID/ PGID switching support
  • TZ settings
  • CUDA/ QSV images
    • NVENC encoding session patches
  • automatic python dependency installs

Installation

  • Replace image in your docker-compose with the default or a variant tag
    ghcr.io/feederbox826/stash-s6
Variants

latest / alpine

ghcr.io/feederbox826/stash-s6:alpine

no hardware acceleration, built on alpine linux

hwaccel

ghcr.io/feederbox826/stash-s6:hwaccel

hardware acceleration from jellyfin-ffmpeg, built on debian

-develop variants

Append -develop to the tag to run the development builds of stash

  • develop / alpine-develop
  • hwaccel-develop

To add hardware acceleration support, follow the specific instructions here

The following are environment variables to customize your container

Environment variables

PUID - Process User ID
PGID - Process Group ID
SKIP_NVIDIA_PATCH - skips patching nvidia driver for multi-stream nvenc. see keylase/nvidia-patch for supported drivers
TZ - timezone
CUSTOM_CERT_PATH - Path to custom root certificates to be added to stash (defaults to /config/certs)

migration-specific environment variables

MIGRATE - automatic migration from stashapp/stash or hotio/stash

Run modes

stashapp/stash compatibility

I want to keep using the stashapp/stash image or possibly switch back

  • Replace image: stashapp/stash with your desired image
  • You will see a message Running in stashapp/stash compatibility mode...

For migration, please see the Github README for the most up-to-date instructions

Screenshots

usermod: no changes
───────────────────────────────────────
               XXXXXXXXX
            XXXXXXXXXXXXXXX
        XXXXXXXXX     XXXXXXXXX
    XXXXXXXXX              XXXXXXXX
   XXXXXXXXXXXXX        XXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXX   XXXXXXXXXXXXXXXX
        XXXXXXXX       XXXXXXXX
     XX      X            X     XX
     XXXXXX      X   X       XXXXX
     XXXXXXXX   XX   XX   XXXXXXXX
       XXXXXXXXXXX   XXXXXXXXXXX
         XXXXXXXXX   XXXXXXXXX
            XXXXXX   XXXXXX

    feederbox826/stash-s6  ⚡+🐍+🎭
───────────────────────────────────────

To support development visit:
https://opencollective.com/stashapp

───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    911
User GID:    911
HW Accel:    NONE

───────────────────────────────────────
entrypoint.sh


INFO[2024-11-29 02:30:19] 🎭 Running as 911:911 from PUID/PGID
INFO[2024-11-29 02:30:19] 📋 checking common directory permissions
INFO[2024-11-29 02:30:19] 🔑 fixing permissions on /config
INFO[2024-11-29 02:30:19] 📋✅ common directories are accessible
INFO[2024-11-29 02:30:19] 🔑 fixing permissions on /config/requirements.txt
WARN[2024-11-29 02:30:19] 🐍 config.yml not found, skipping requirements.txt generation
INFO[2024-11-29 02:30:19] 🐍 Installing/upgrading python requirements...
INFO[2024-11-29 02:30:19] 🔑 fixing permissions on /pip-install/install
INFO[2024-11-29 02:30:19] 🔑 fixing permissions on /pip-install/cache
Using Python 3.12.7 environment at /usr
Resolved 19 packages in 423ms
Prepared 19 packages in 4.85s
Installed 19 packages in 27ms
 + beautifulsoup4==4.12.3
 + bs4==0.0.2
 + certifi==2024.8.30
 + charset-normalizer==3.4.0
 + cloudscraper==1.2.71
 + fastbencode==0.3.1
 + idna==3.10
 + lxml==5.3.0
 + mechanicalsoup==1.3.0
 + pyparsing==3.2.0
 + pystashlib==0.5.0
 + python-dateutil==2.9.0.post0
 + pyyaml==6.0.2
 + requests==2.32.3
 + requests-toolbelt==1.0.0
 + six==1.16.0
 + soupsieve==2.6
 + stashapp-tools==0.2.55
 + urllib3==2.2.3

Starting stash...
───────────────────────────────────────

WARN[2024-11-29 02:30:24] config file /config/config.yml not found. Assuming new system...
INFO[2024-11-29 02:30:24] stash version: v0.27.2 (76648fee) - Official Build - 2024-10-15 22:22:45
INFO[2024-11-29 02:30:24] stash is listening on 0.0.0.0:9999
INFO[2024-11-29 02:30:24] stash is running at http://localhost:9999/
INFO[2024-11-29 02:30:25] Version v0.27.2 (76648fee) is already the latest released
2 Likes