The gateway presigns uploads and runs the AI chat. UIGRAPH_API_URL and the STORAGE_* keys are required; the AI provider and MCP settings are only needed for the AI chat feature.
Port inside the container (published on host 8081 in the bundled deploy).
UIGRAPH_API_URL
Yes
—
In-network base URL of uigraph-api (e.g. http://uigraph-api:8080).
DEPLOYMENT_ENV
No
production
local | development | production. How much detail is written to the logs. Leave at production for a normal deploy; the others are noisier and meant for debugging.
The gateway remembers which organization a token belongs to, so it does not ask the API on every request.
Variable
Required
Default
Description
REDIS_URL
No
—
A Redis instance the gateway shares its cache through, the same one the API uses. Leave it blank and each gateway process caches in its own memory instead. Worth setting when you run more than one gateway.
ORG_ID_CACHE_TTL_MS
No
86400000
How long (ms) a token's organization is remembered. Default is 1 day.