47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
services:
|
|
stash:
|
|
image: stashapp/stash@sha256:4cac18873ea052f03510602d9e1a9b29e6241a393a111479010292b7a1e28a5e
|
|
container_name: stash
|
|
user: "1000:1000"
|
|
restart: unless-stopped
|
|
ports:
|
|
- "9999:9999"
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-file: "10"
|
|
max-size: "2m"
|
|
environment:
|
|
- USER=stash
|
|
- HOME=/root
|
|
- STASH_STASH=/data/
|
|
- STASH_GENERATED=/generated/
|
|
- STASH_METADATA=/metadata/
|
|
- STASH_CACHE=/cache/
|
|
- STASH_PORT=9999
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /mnt/storage/apps/stash/.stash:/root/.stash
|
|
- /mnt/storage/media/Private:/data
|
|
- /mnt/storage/apps/stash/metadata:/metadata
|
|
- /mnt/storage/apps/stash/cache:/cache
|
|
- /mnt/storage/apps/stash/blobs:/blobs
|
|
- /mnt/storage/apps/stash/generated:/generated
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9999/healthz"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 4G
|
|
cpus: '2.0'
|
|
networks:
|
|
- network
|
|
networks:
|
|
network:
|
|
name: proxy
|
|
external: true
|