2023-01-08 15:05:11 +02:00
|
|
|
# APPNICENAME=Stash
|
|
|
|
# APPDESCRIPTION=An organizer for your ****, written in Go
|
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
stash:
|
|
|
|
image: stashapp/stash:latest
|
|
|
|
container_name: stash
|
|
|
|
restart: always
|
|
|
|
## 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:
|
2023-03-10 14:19:54 +02:00
|
|
|
- STASH_STASH=data/
|
|
|
|
- STASH_GENERATED=generated/
|
|
|
|
- STASH_METADATA=metadata/
|
|
|
|
- STASH_CACHE=cache/
|
2023-01-08 15:05:11 +02:00
|
|
|
## Adjust below to change default port (9999)
|
|
|
|
- STASH_PORT=9999
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
## Adjust below paths (the left part) to your liking.
|
2023-03-10 14:19:54 +02:00
|
|
|
## E.g. you can change ./config:/root/.stash to ./stash:/root/.stash
|
|
|
|
- /mnt/data/storage/stash-meta/config:/root/.stash
|
|
|
|
- /mnt/data/storage/stash-meta/metadata:/metadata
|
|
|
|
- /mnt/data/storage/stash-meta/cache:/cache
|
|
|
|
- /mnt/data/storage/stash-meta/generated:/generated
|
|
|
|
- /mnt/data/storage/stash:/data
|