mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-04 20:05:16 +02:00
chore(dev): document storage env vars and add azurite service
This commit is contained in:
parent
537b6e3b33
commit
a4f3af7ed8
2 changed files with 29 additions and 0 deletions
|
|
@ -128,6 +128,23 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
|
# OPTIONAL — Azurite emulates Azure Blob Storage for testing the Azure
|
||||||
|
# original-file backend. The default filesystem backend needs none of this.
|
||||||
|
# To exercise it, set in surfsense_backend/.env:
|
||||||
|
# FILE_STORAGE_BACKEND=azure
|
||||||
|
# AZURE_STORAGE_CONTAINER=surfsense-documents
|
||||||
|
# AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://localhost:${AZURITE_BLOB_PORT:-10000}/devstoreaccount1;
|
||||||
|
# The backend creates blobs on upload; create the container once first
|
||||||
|
# (Azure CLI / Storage Explorer), then upload a document.
|
||||||
|
azurite:
|
||||||
|
image: mcr.microsoft.com/azure-storage/azurite:3.33.0
|
||||||
|
command: azurite-blob --blobHost 0.0.0.0 --blobPort 10000
|
||||||
|
ports:
|
||||||
|
- "${AZURITE_BLOB_PORT:-10000}:10000"
|
||||||
|
volumes:
|
||||||
|
- azurite_data:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
name: surfsense-deps-postgres
|
name: surfsense-deps-postgres
|
||||||
|
|
@ -137,3 +154,5 @@ volumes:
|
||||||
name: surfsense-deps-redis
|
name: surfsense-deps-redis
|
||||||
zero_cache_data:
|
zero_cache_data:
|
||||||
name: surfsense-deps-zero-cache
|
name: surfsense-deps-zero-cache
|
||||||
|
azurite_data:
|
||||||
|
name: surfsense-deps-azurite
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,16 @@ LLAMA_CLOUD_API_KEY=llx-nnn
|
||||||
# AZURE_DI_ENDPOINT=https://your-resource.cognitiveservices.azure.com/
|
# AZURE_DI_ENDPOINT=https://your-resource.cognitiveservices.azure.com/
|
||||||
# AZURE_DI_KEY=your-key
|
# AZURE_DI_KEY=your-key
|
||||||
|
|
||||||
|
# Original File Storage
|
||||||
|
# Where to persist the original bytes of uploaded documents (for download today,
|
||||||
|
# redaction / form-filling later). "local" needs no cloud creds and is the dev default.
|
||||||
|
FILE_STORAGE_BACKEND=local
|
||||||
|
# Local backend: directory for stored files (defaults to surfsense_backend/.local_object_store)
|
||||||
|
# FILE_STORAGE_LOCAL_PATH=/var/lib/surfsense/object-store
|
||||||
|
# Azure Blob backend (set FILE_STORAGE_BACKEND=azure):
|
||||||
|
# AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=...;AccountKey=...;EndpointSuffix=core.windows.net
|
||||||
|
# AZURE_STORAGE_CONTAINER=surfsense-documents
|
||||||
|
|
||||||
# Daytona Sandbox (isolated code execution)
|
# Daytona Sandbox (isolated code execution)
|
||||||
# DAYTONA_SANDBOX_ENABLED=FALSE
|
# DAYTONA_SANDBOX_ENABLED=FALSE
|
||||||
# DAYTONA_API_KEY=your-daytona-api-key
|
# DAYTONA_API_KEY=your-daytona-api-key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue