Edit docker/assistant-api/.assistant.env before starting the service.For local development (without Docker), export the variables and override the Docker hostnames shown in the table below.
JWT signing secret — must be identical across all services
POSTGRES__HOST
postgres
PostgreSQL host
POSTGRES__DB_NAME
assistant_db
Database name
POSTGRES__AUTH__USER
rapida_user
Database user
POSTGRES__AUTH__PASSWORD
rapida_db_password
Database password
REDIS__HOST
redis
Redis host
OPENSEARCH__HOST
(empty)
OpenSearch host — optional, leave empty to disable knowledge base
INTEGRATION_HOST
integration-api:9004
integration-api gRPC address
ENDPOINT_HOST
endpoint-api:9005
endpoint-api gRPC address
WEB_HOST
web-api:9001
web-api gRPC address
DOCUMENT_HOST
(empty)
document-api HTTP address — optional, only needed for knowledge base
PUBLIC_ASSISTANT_HOST
—
Publicly reachable hostname for telephony callbacks and WebSocket media
PUBLIC_ASSISTANT_HOST must resolve from the public internet. Twilio, Vonage, and Exotel connect WebSocket media streams to wss://PUBLIC_ASSISTANT_HOST/v1/talk/{provider}/ctx/{contextId}. For local testing, use an ngrok tunnel and set this to your ngrok hostname (e.g. abc123.ngrok.io).
OpenSearch is only needed for knowledge base / RAG features. If OPENSEARCH__HOST is left empty (the default), the assistant-api starts without knowledge base support and skips the OpenSearch connection entirely.
Variable
Default
Description
OPENSEARCH__SCHEMA
http
http · https
OPENSEARCH__HOST
(empty)
OpenSearch host — leave empty to disable knowledge base
The built-in SIP server handles direct SIP INVITE connections and Asterisk SIP trunk connections.
Variable
Default
Description
SIP__SERVER
0.0.0.0
Bind address for SIP
SIP__EXTERNAL_IP
0.0.0.0
Public IP advertised in SDP and SIP Contact headers — must be your server’s public IP
SIP__PORT
5090
SIP signalling port (UDP)
SIP__TRANSPORT
udp
udp · tcp
SIP__RTP_PORT_RANGE_START
10000
RTP media port range start
SIP__RTP_PORT_RANGE_END
20000
RTP media port range end
Set SIP__EXTERNAL_IP to your server’s public IP address. If this is set to 0.0.0.0, SDP answers will advertise the wrong address and media will not flow for callers outside the local network.