Skip to content

Configuration

All configuration is done via environment variables. Default values work for local development.

Server (Hono)

VariableDefaultDescription
POCKETBASE_URLhttp://localhost:8090PocketBase URL
PB_SUPERUSER_EMAILadmin@sirene.localPocketBase admin email
PB_SUPERUSER_PASSWORDchangeme123PocketBase admin password
MODELS_PATH./data/modelsModels directory
INFERENCE_URLhttp://localhost:8000Inference service URL

Inference (FastAPI)

VariableDefaultDescription
INFERENCE_MODELS_PATH/data/modelsModels directory
INFERENCE_DEVICEcudaDevice (cuda or cpu)
INFERENCE_MAX_LOADED_MODELS2Max models loaded in memory simultaneously

Client (Vite)

VariableDefaultDescription
VITE_PB_URLPocketBase URL (set at build time)
VITE_SERVER_URLHono server URL (set at build time)

TIP

In development, Vite proxies requests to the backend services automatically. These variables are only needed for production builds.

Docker

These variables are used by the Docker entrypoint to initialize PocketBase on first start:

VariableDefaultDescription
PB_SUPERUSER_EMAILPocketBase admin email (auto-created on startup)
PB_SUPERUSER_PASSWORDPocketBase admin password
INFERENCE_DEVICEcpuInference device (cpu or cuda)

TIP

The install.sh script generates these automatically. See the Docker guide for details.