Object Storage (Garage)
Fluxomni can store durable artifacts in S3-compatible object storage instead of only on the local disk. Self-hosted full installs use Garage, a small single-node object store, behind a Compose overlay.
Fresh full installs enable object storage by default. Capacity upgrades do not turn it on by default for existing installs. The overlay keeps the local filesystem relay at /app/fluxomni-data/videos alongside Garage. To disable Garage, set FLUXOMNI_OBJECT_STORAGE_ENABLED=0 in .env and follow the capacity upgrade guide when rerunning the installer. Standalone media-node installs never include Garage.
When enabled, the installer:
- Downloads
docker-compose.object-storage.ymland includes it in the Compose stack. - Generates
object-storage/config.tomlandobject-storage/credentials.envwith0600permissions. The credentials are a dedicated Garage access key; they are written to.envlike the internal auth token and are never printed in logs. - Starts
garageand a one-shotgarage-initcontainer that provisions the bucket.
Security properties
- Isolated credentials: the control plane receives only the generated access key. The Garage admin token stays in
object-storage/config.toml, readable only by the provisioner. - Bounded uploads: the key is allowed read and write on exactly one bucket (
FLUXOMNI_OBJECT_STORAGE_BUCKET, defaultfluxomni-artifacts). It cannot create buckets and is not a bucket owner. The bucket has a size and object quota (FLUXOMNI_OBJECT_STORAGE_QUOTA_SIZE, default 10 GiB;FLUXOMNI_OBJECT_STORAGE_QUOTA_OBJECTS, default 100000). - No public buckets: no bucket alias or website is ever created; anonymous requests are rejected.
- Private endpoints: the S3 and admin APIs publish on
127.0.0.1only (FLUXOMNI_OBJECT_STORAGE_API_PORT,FLUXOMNI_GARAGE_ADMIN_PORT). The control plane reaches Garage over the private Compose network athttp://garage:3900. Never bind these ports to0.0.0.0. - Verified checksums: provisioning writes a probe object, reads it back, and compares SHA-256 checksums before reporting success. Garage also verifies block checksums internally on every write.
- Pinned image: Garage runs from
dxflrs/garage:v2.5.0pinned by digest.
Manual setup
Without the installer, in the installation directory:
python3 scripts/object-storage.py init --dir .
# add docker-compose.object-storage.yml to COMPOSE_FILE, set the
# FLUXOMNI_OBJECT_STORAGE_* variables from the generated credentials, then:
docker compose up -d
Operating
- Data lives in
FLUXOMNI_OBJECT_STORAGE_DATA_DIR(default./data/garage). Back it up with your regular data backup; see Backup & Restore. - The control plane fetches artifacts with short-lived presigned URLs; no public URL is ever generated.
- To inspect the bucket:
docker exec fluxomni-garage /garage bucket info fluxomni-artifacts.