Self-host

Run Hubstruct on your own hardware

Free, with every feature and no limits. The models run on your GPU, the database on your disks, and your photos never leave the machine.

An NVIDIA GPU

12 GB of video memory runs every model. Less works, more slowly.

16 GB of memory

32 GB is comfortable for large libraries.

Disk for your media

Plus about 30 GB for the models and the database.

Docker Compose

On Linux, or Windows with WSL 2 and the NVIDIA toolkit.

No GPU? It still runs: the app, uploads and browsing work, and the AI steps wait until a model server is reachable. The requirements in full

  1. 1

    Download the Compose file

    One file describes every service. Keep it in a folder of its own.

    Terminal
    $ mkdir hubstruct && cd hubstruct
    $ curl -fsSL https://hubstruct.com/install/compose.yml -o compose.yml
    
  2. 2

    Make your settings

    The example has every setting, with the defaults. Set the passwords and the storage keys.

    Terminal
    $ curl -fsSL https://hubstruct.com/install/env.example -o .env
    # Fill in POSTGRES_PASSWORD and the S3_* secrets, for example:
    $ openssl rand -hex 32
    
  3. 3

    Start it

    The first start downloads the images and the models, which takes a while once.

    Terminal
    $ docker compose up -d
    $ docker compose ps
    
  4. 4

    Open it and make your account

    Go to port 4173 on the machine. The first visit asks for the owner account, then your first library.

    Terminal
    # http://localhost:4173
    

What runs

A handful of containers, each with one job. They talk to each other on their own network; only the app's port needs to be reachable.

consoleThe app you use in the browser
apiEverything the app does, as an API
workerThe processing steps, albums, people and places
postgresThe database, with pgvector
modelsThe AI models, on llama.cpp: descriptions, titles, tags and embeddings
visionFaces, and finding text in pictures
storageS3-compatible storage (Garage)

How the services fit together · Sharing one GPU · Backups · Updating