From 4aea783e85cab258bc1cb0176a1bd9f429947d0b Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 23 Jun 2022 22:24:59 -0700 Subject: [PATCH] Refactor volumes to media, metadata, and config --- homelab/server/config/stashapp/.env | 4 +++- homelab/server/config/stashapp/docker-compose.yml | 14 +++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/homelab/server/config/stashapp/.env b/homelab/server/config/stashapp/.env index 4a2010a4..120910d7 100644 --- a/homelab/server/config/stashapp/.env +++ b/homelab/server/config/stashapp/.env @@ -1 +1,3 @@ -DOCKER_DATA=/mnt/nas/av/ \ No newline at end of file +MEDIA_DIR=/mnt/nas/av/ +MEATADATA_DIR=/mnt/md0/ +DOCKER_DATA=/home/joey/data/stash \ No newline at end of file diff --git a/homelab/server/config/stashapp/docker-compose.yml b/homelab/server/config/stashapp/docker-compose.yml index bdde17fc..b1985495 100644 --- a/homelab/server/config/stashapp/docker-compose.yml +++ b/homelab/server/config/stashapp/docker-compose.yml @@ -6,12 +6,12 @@ services: restart: unless-stopped volumes: - /etc/localtime:/etc/localtime:ro - - $DOCKER_DATA/.stash/generated:/generated - - $DOCKER_DATA/.stash/metadata:/metadata - - $DOCKER_DATA/.stash/cache:/cache - - $DOCKER_DATA/.stash/config:/root/.stash - - $DOCKER_DATA/Videos:/media/Galleries - - $DOCKER_DATA/Galleries:/media/Videos + - $METADATA_DIR/generated:/generated + - $METADATA_DIR/metadata:/metadata + - $METADATA_DIR/cache:/cache + - $MEDIA_DIR/Videos:/media/Galleries + - $MEDIA_DIR/Galleries:/media/Videos + - $DOCKER_DATA:/root/.stash environment: - STASH_STASH=/media/ - STASH_GENERATED=/generated/ @@ -22,7 +22,7 @@ services: labels: - traefik.http.routers.stash.rule=Host(`stash.jafner.net`) - traefik.http.routers.stash.tls.certresolver=lets-encrypt - # - traefik.http.routers.stash.middlewares=lan-only@file # optional lan-only testing + - traefik.http.routers.stash.middlewares=lan-only@file # optional lan-only testing networks: web: