stash/docker/production/docker-compose.yml
Leopere 83ee83c2fa Dockerfile for production. (#44)
* Stealing good ideas from DockSTARTer

* Pushing an example WIP

* Actually ran and debugged container and it works now.
TODO: We need configurability for this to be more useful.

* Prepped docker-compose for if we get these envvars coded in.

* Removed unnecessary start.sh

* Removed env.example

* Fixed internal directory to conform more.

Resovles https://github.com/stashapp/stash/pull/44#issuecomment-485060195

* Logging options need quotes.

* I decided to use architecture tags since go-releaser can do multiple architectures.

* Compose version version: '3.4'

* No relative pathing on container side of volume
2019-04-24 10:10:26 -07:00

31 lines
846 B
YAML

# APPNICENAME=Stash
# APPDESCRIPTION=An organizer for your porn, written in Go
version: '3.4'
services:
stash:
image: stashapp/stash:x86_64
restart: unless-stopped
ports:
- "9999:9999"
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "200k"
environment:
- STASH_STASH=/data/
- STASH_GENERATED=/generated/
- STASH_METADATA=/metadata/
- STASH_CACHE=/cache/
volumes:
- /etc/localtime:/etc/localtime:ro
## Keep configs here.
- ./config:/root/.stash
## Point this at your collection.
- ./data:/data
## This is where pre-generated transcodes live.
- ./transcodes:/transcodes
## This is where your stash's metadata lives
- ./metadata:/metadata
## Any other cache content.
- ./cache:/cache