From 8fa1de2b4e8e0e505a1036bf326fe70d84c06814 Mon Sep 17 00:00:00 2001 From: L4RM4ND <21357789+l4rm4nd@users.noreply.github.com> Date: Thu, 23 Feb 2023 01:56:52 +0100 Subject: [PATCH] add stash --- README.md | 3 +-- stash/README.md | 4 ++++ stash/docker-compose.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 stash/README.md create mode 100644 stash/docker-compose.yml diff --git a/README.md b/README.md index a167e66..ae9d495 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ docker compose up - [Deemix](deemix) - [Papermerge](papermerge) - [Paperless NGX](paperless-ngx) +- [Stash](stash) ### Pastebins - [PrivateBin](privatebin) @@ -161,7 +162,5 @@ docker compose up ### Project Management - [JetBrains YouTrack](youtrack) - ## Star History - [![Star History Chart](https://api.star-history.com/svg?repos=Haxxnet/Compose-Examples&type=Date)](https://star-history.com/#Haxxnet/Compose-Examples&Date) diff --git a/stash/README.md b/stash/README.md new file mode 100644 index 0000000..1558aa5 --- /dev/null +++ b/stash/README.md @@ -0,0 +1,4 @@ +# References + +- https://github.com/stashapp/stash +- https://raw.githubusercontent.com/stashapp/stash/develop/docker/production/docker-compose.yml diff --git a/stash/docker-compose.yml b/stash/docker-compose.yml new file mode 100644 index 0000000..da1870d --- /dev/null +++ b/stash/docker-compose.yml @@ -0,0 +1,45 @@ +# APPNICENAME=Stash +version: '3.4' + +services: + stash: + image: stashapp/stash:latest + container_name: stash + hostname: stash + restart: unless-stopped + ## the container's port must be the same with the STASH_PORT in the environment section + ports: + - "9999:9999" + ## If you intend to use stash's DLNA functionality uncomment the below network mode and comment out the above ports section + # network_mode: host + logging: + driver: "json-file" + options: + max-file: "10" + max-size: "2m" + environment: + - STASH_STASH=/data/ + - STASH_GENERATED=/generated/ + - STASH_METADATA=/metadata/ + - STASH_CACHE=/cache/ + ## Adjust below to change default port (9999) + - STASH_PORT=9999 + volumes: + - /etc/localtime:/etc/localtime:ro + ## Keep configs, scrapers, and plugins here. + - /mnt/docker-volumes/stash/config:/root/.stash + ## Point this at your collection. + - /mnt/docker-volumes/stash/data:/data + ## This is where your stash's metadata lives + - /mnt/docker-volumes/stash/metadata:/metadata + ## Any other cache content. + - /mnt/docker-volumes/stash/cache:/cache + ## Where to store generated content (screenshots,previews,transcodes,sprites) + - /mnt/docker-volumes/stash/generated:/generated + #labels: + # - traefik.enable=true + # - traefik.http.routers.stash.rule=Host(`stash.example.com`) + # - traefik.http.services.stash.loadbalancer.server.port=9999 + # - traefik.docker.network=proxy + # # Part for optional traefik middlewares + # - traefik.http.routers.stash.middlewares=local-ipwhitelist@file,basic-auth@file