Files
docker-compose-cookbooks/stash
codeandClaude Fable 5 8ab413804a normalize all stacks to conventions
- VOL_PATH always defaults to /data; vscode/opencode VOL_PROJECTS nests it
- TZ defaults to America/Vancouver (was UTC in etherpad, ntfy, redis)
- compose section order fixed (volumes before environment, command after networks)
- all default secrets are the literal ChangeThisPassword (grep-friendly,
  users must change them); removed a real key from ollama sample.env
- sample.env synced with compose: missing vars added with defaults, dead vars removed
- invoiceninja_dev/openarchiver_dev: app services had no environment block,
  wired all sample.env vars through so the stacks actually work
- opencode: sample.env OLLAMA_HOST renamed to OLLAMA_HOST_URL to match compose
- TZ values unquoted consistently

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 06:24:54 +00:00
..
2026-04-24 16:53:47 +00:00
2026-04-16 16:28:04 +00:00
2026-07-16 06:24:54 +00:00

Stash App Docker Compose Configuration

Overview

This Docker Compose configuration sets up the Stash application using Docker containers.

Setup

Data directories

By default the compose file creates volumes locally in the project:

mkdir -p data/video data/cache data/metadata data/generated data/root/.stash
touch data/root/.stash/config.yml

Usually I .gitignore the data directory and use a backup solution.

Configuration Details

Environment Variables

STASH_IMAGE

Docker image tag for Stash app. Alternative image found here: https://hotio.dev/containers/stash/

STASH_DOMAIN_NAME

Domain name for the Stash app.

MAX_SIZE

Maximum size for log files.

Other

STASH_STASH, STASH_GENERATED, STASH_METADATA, STASH_CACHE: Paths for Stash data directories.

Volumes

/etc/localtime:/etc/localtime:ro: Mounts host system's timezone information. ./data/video:/data: Maps local ./data/video directory to Stash /data directory. ./data/metadata:/metadata: Maps local ./data/metadata directory to Stash /metadata directory. ./data/cache:/cache: Maps local ./data/cache directory to Stash /cache directory. ./data/generated:/generated: Maps local ./data/generated directory to Stash /generated directory. ./data/root:/root: Maps local ./data/root directory to Stash /root directory.

Networking

In your project file, you can change the network mode to host:

services:
  stash:
    ports:
      - "8000:9999"
    network_mode: "host"