added bytestash
This commit is contained in:
@@ -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
|
||||
@@ -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}"
|
||||
Reference in New Issue
Block a user