modifying things for portainer

This commit is contained in:
2025-11-26 20:07:00 -08:00
parent a2a5f34c51
commit 52f1705324
18 changed files with 74 additions and 433 deletions
+62
View File
@@ -0,0 +1,62 @@
# Stash App Docker Compose Configuration
## Overview
This Docker Compose configuration sets up the Stash application using Docker containers.
- Stash App: [Stash on Docker Hub](https://hub.docker.com/r/stashapp/stash)
- Compose Example: [Stash GitHub Repository](https://github.com/stashapp/stash/blob/develop/docker/production/docker-compose.yml)
- ProxyPort: 9999
## Setup
### Data directories
By default the compose file creates volumes locally in the project:
```bash
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:
```yaml
services:
stash:
ports:
- "8000:9999"
network_mode: "host"
```
+23
View File
@@ -0,0 +1,23 @@
services:
stashapp:
image: ${STASHAPP_IMAGE:-stashapp/stash:latest}
# image: ghcr.io/hotio/stash # Alternative image
restart: ${STASHAPP_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-./data}/stash/cache:/cache
- ${VOL_PATH:-./data}/stash/generated:/generated
- ${VOL_PATH:-./data}/stash/metadata:/metadata
- ${VOL_PATH:-./data}/stash/root:/root
- ${VOL_PATH:-./data}/stash/video:/data
- /etc/localtime:/etc/localtime:ro
environment:
- STASH_CACHE=${STASHAPP_STASH_CACHE:-/cache/}
- STASH_DOMAIN_NAME=${STASHAPP_STASH_DOMAIN_NAME:-stash.yourdomain.ca}
- STASH_GENERATED=${STASHAPP_STASH_GENERATED:-/generated/}
- STASH_METADATA=${STASHAPP_STASH_METADATA:-/metadata/}
- STASH_STASH=${STASHAPP_STASH_STASH:-/data/}
ports: # Optional, can remove if running proxy
- "${STASHAPP_PORT:-9999}:9999"
network_mode: "host" # Optional, to run DLNA
networks: # optional for reverse proxy
- proxy
+8
View File
@@ -0,0 +1,8 @@
# stashapp
STASHAPP_IMAGE=stashapp/stash:latest # https://hub.docker.com/r/stashapp/stash/tags
# ghcr.io/hotio/stash # Alternative image
STASHAPP_STASH_CACHE=/cache/
STASHAPP_STASH_DOMAIN_NAME=stash.yourdomain.ca
STASHAPP_STASH_GENERATED=/generated/
STASHAPP_STASH_METADATA=/metadata/
STASHAPP_STASH_STASH=/data/