Environment variables
Dopbase reads the following environment variables. Command-line options take precedence when both are set. For server settings, environment variables take precedence over values in server.toml.
Examples
Run an application against a remote environment:
export DOPBASE_URL=https://dopbase.example.com
export DOPBASE_TOKEN=dbs_xxxxxxxxxxxxxxxxx
export DOPBASE_ENV=env_482731
dopbase run -- ./payment-serviceStart a self-hosted server with environment-based configuration:
export DOPBASE_ROOT_EMAIL=ops@example.com
export DOPBASE_DATA_DIR=/srv/dopbase
export DOPBASE_HOST=0.0.0.0
export DOPBASE_PORT=9000
export DOPBASE_PUBLIC_URL=https://dopbase.example.com
export DOPBASE_MASTER_KEY_PATH=/run/secrets/dopbase-master-key
dopbase server startUse the same persistent data location on subsequent starts. On fresh storage, this command creates root and prints its generated password once; save it before closing the terminal. Initialized startup ignores the bootstrap email and never changes credentials. Blank values select web setup when the UI is enabled. Invalid nonempty values fail before creating files on fresh storage. With a disabled UI and no email, complete explicit setup first. See server setup for background JSON output, recovery, and web prefilling.
Do not commit DOPBASE_TOKEN or a master key to source control. Supply them through your shell, process manager, CI secret store, or deployment platform.
dopbase run removes DOPBASE_TOKEN from the child process before it starts the application.