A newer version of the Streamlit SDK is available:
1.54.0
Aegis Deployment Guide
This guide explains how to deploy the Aegis Financial Analyst Agent using Docker and Docker Compose.
Prerequisites
- Docker and Docker Compose installed on your machine.
- An
.envfile with valid API keys (see.env.exampleor your existing.env).
Deployment Steps
Build and Start Services Run the following command in the project root directory:
docker-compose up --build -dThis will:
- Build the Docker image for the application.
- Create a network
aegis-net. - Start all services (Gateway, Microservices, Monitor, Frontend) in detached mode.
Verify Deployment
- Frontend: Access the Streamlit UI at
http://localhost:8501. - Gateway:
http://localhost:8000 - Services:
- Tavily:
http://localhost:8001 - Alpha Vantage:
http://localhost:8002 - Portfolio:
http://localhost:8003
- Tavily:
- Frontend: Access the Streamlit UI at
View Logs To see logs for all services:
docker-compose logs -fTo see logs for a specific service (e.g., frontend):
docker-compose logs -f frontendStop Services To stop and remove containers:
docker-compose down
Environment Variables
Ensure your .env file contains:
GOOGLE_API_KEYTAVILY_API_KEYALPHA_VANTAGE_API_KEY
Docker Compose automatically reads these from the .env file in the same directory.
Alternative Deployment (No Docker)
If you cannot run Docker, use the local deployment script:
./deploy_local.sh
This runs all services in the background and saves logs to a logs/ folder.
Troubleshooting
- "Cannot connect to the Docker daemon": This means Docker is not running. Open Docker Desktop on your Mac and wait for it to start (the whale icon in the menu bar should stop animating).
- Port Conflicts: Ensure ports 8000-8003 and 8501 are free.
- Database Persistence: The
portfolio.dbfile is mounted as a volume, so your internal portfolio data persists across restarts.