mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 10:56:23 +00:00
Started on the path of consistancy
This commit is contained in:
+5
-35
@@ -18,26 +18,7 @@ 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 for redundancy.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
In the project directory just run
|
||||
|
||||
```bash
|
||||
# Docker Start
|
||||
docker-compose up -d
|
||||
|
||||
# Docker Stop
|
||||
docker-compose down
|
||||
|
||||
# Podman Start
|
||||
podman-compose up -d
|
||||
|
||||
# Podman Stop
|
||||
podman-compose down
|
||||
```
|
||||
Usually I .gitignore the data directory and use a backup solution.
|
||||
|
||||
## Configuration Details
|
||||
|
||||
@@ -46,6 +27,7 @@ podman-compose down
|
||||
#### STASH_IMAGE
|
||||
|
||||
Docker image tag for Stash app.
|
||||
Alternative image found here: https://hotio.dev/containers/stash/
|
||||
|
||||
#### STASH_DOMAIN_NAME
|
||||
|
||||
@@ -70,23 +52,11 @@ STASH_STASH, STASH_GENERATED, STASH_METADATA, STASH_CACHE: Paths for Stash data
|
||||
|
||||
### Networking
|
||||
|
||||
In your project file, you can change the network mode to host:
|
||||
In your project file, you can change the network mode to host:
|
||||
```yaml
|
||||
stash:
|
||||
extends:
|
||||
file: ${COOKBOOK}/stashapp/docker-compose.yml
|
||||
service: stash
|
||||
env_file:
|
||||
- .env
|
||||
services:
|
||||
stash:
|
||||
ports:
|
||||
- "8000:9999"
|
||||
network_mode: "host"
|
||||
```
|
||||
|
||||
If you are using a reverse proxy, you need to set that network:
|
||||
|
||||
```yaml
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
```
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
services:
|
||||
stash:
|
||||
stashapp:
|
||||
image: ${STASHAPP_IMAGE:-stashapp/stash:latest}
|
||||
restart: unless-stopped
|
||||
# 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/}
|
||||
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
|
||||
ports: # Optional, can remove if running proxy
|
||||
- "${STASHAPP_PORT:-9999}:9999"
|
||||
network_mode: "host" # Optional, to run DLNA
|
||||
|
||||
+2
-6
@@ -1,10 +1,6 @@
|
||||
COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks
|
||||
VOL_PATH=./data
|
||||
TZ="America/Vancouver"
|
||||
COMPOSE_PROJECT_NAME=stash
|
||||
|
||||
# stashapp
|
||||
STASHAPP_IMAGE=stashapp/stash:latest
|
||||
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/
|
||||
|
||||
Reference in New Issue
Block a user