Environment Variables#
This section explains the environment variables used to configure the Smart Route Planning Agent.
Core Configuration#
Variable |
Default |
Description |
|---|---|---|
|
Auto-detected |
Host IP address for the application. Automatically detected from the network interface. Falls back to |
|
|
Docker image tag to use when building and running containers. |
|
(empty) |
Docker registry path for pulling or pushing images. |
Network Configuration#
Variable |
Default |
Description |
|---|---|---|
|
|
Port on which the Smart Route Planning Agent UI is accessible. |
Application Settings#
Variable |
Default |
Description |
|---|---|---|
|
|
Duration in seconds for traffic data buffering. |
|
|
Logging level for the application. Options: |
|
|
Number of hours to retain traffic data. |
Proxy Settings#
Variable |
Default |
Description |
|---|---|---|
|
(system) |
HTTP proxy URL for outbound connections. |
|
(system) |
HTTPS proxy URL for outbound connections. |
|
(system) |
Comma-separated list of hosts to bypass proxy. |
Set Environment Variables#
Configure Using the Setup Script (Recommended)#
The setup script automatically configures most environment variables. To override defaults, export variables before running the script:
export AI_ROUTE_PLANNER_PORT=8080
export LOG_LEVEL=DEBUG
source setup.sh --setup
Configure Manually#
For manual deployment, create a .env file in the src/ directory:
HOST_IP=192.168.1.100
AI_ROUTE_PLANNER_PORT=7864
TAG=latest
LOG_LEVEL=INFO
TRAFFIC_BUFFER_DURATION=60
DATA_RETENTION_HOURS=24
Run the Docker Compose tool:
cd src
docker compose --env-file .env up