From 086656c622335d8143a8fa6d1f9fbf0ec16db316 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Mon, 11 May 2026 08:54:07 -0700 Subject: [PATCH] added bytestash --- ByteStash/.env.example | 13 +++++++++++++ ByteStash/docker-compose-nfs.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 ByteStash/.env.example create mode 100644 ByteStash/docker-compose-nfs.yaml diff --git a/ByteStash/.env.example b/ByteStash/.env.example new file mode 100644 index 0000000..7b6543d --- /dev/null +++ b/ByteStash/.env.example @@ -0,0 +1,13 @@ +# ByteStash Docker Compose Environment Variables + +# Container image version tag (e.g. "1.5.4" or "latest") +BYTESTASH_VERSION=latest + +# Host port to expose the ByteStash web UI on +BYTESTASH_PORT=5000 + +# IP address or hostname of the NFS server +BYTESTASH_NFS_SERVER=192.168.1.100 + +# NFS export path on the server (e.g. "/mnt/pool/bytestash") +BYTESTASH_NFS_DEVICE=/mnt/pool/bytestash diff --git a/ByteStash/docker-compose-nfs.yaml b/ByteStash/docker-compose-nfs.yaml new file mode 100644 index 0000000..58e57a2 --- /dev/null +++ b/ByteStash/docker-compose-nfs.yaml @@ -0,0 +1,28 @@ +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}" \ No newline at end of file