Files
Docker-Compose/ByteStash/docker-compose-nfs.yaml
T
2026-05-11 08:54:07 -07:00

28 lines
730 B
YAML

services:
app:
image: ghcr.io/jordan-dalby/bytestash:${BYTESTASH_VERSION:-latest}
container_name: bytestash-app
ports:
- ${BYTESTASH_PORT:-5000}:5000
volumes:
- bytestash-app:/data/snippets:rw
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
deploy:
resources:
limits:
memory: 512m
restart: unless-stopped
volumes:
bytestash-app:
name: bytestash-app
driver: local
driver_opts:
type: nfs
o: "addr=${BYTESTASH_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4"
device: "${BYTESTASH_NFS_DEVICE}"