Compose-Examples/examples/stash/docker-compose.yml

51 lines
1.8 KiB
YAML
Raw Normal View History

2023-02-23 00:56:52 +00:00
services:
2023-02-23 00:56:52 +00:00
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"
expose:
- 9999
2023-02-23 00:56:52 +00:00
## 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.
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/config:/root/.stash
2023-02-23 00:56:52 +00:00
## Point this at your collection.
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/data:/data
2023-02-23 00:56:52 +00:00
## This is where your stash's metadata lives
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/metadata:/metadata
2023-02-23 00:56:52 +00:00
## Any other cache content.
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/cache:/cache
2023-02-23 00:56:52 +00:00
## Where to store generated content (screenshots,previews,transcodes,sprites)
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/generated:/generated
#networks:
# - proxy
2023-02-23 00:56:52 +00:00
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
2023-02-23 00:56:52 +00:00
# - traefik.http.routers.stash.rule=Host(`stash.example.com`)
# - traefik.http.services.stash.loadbalancer.server.port=9999
# # Part for optional traefik middlewares
# - traefik.http.routers.stash.middlewares=local-ipwhitelist@file,basic-auth@file
#networks:
# proxy:
# external: true