Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ version: "3.8"

services:
api:
image: evoapicloud/evo-ai:latest
# image: evoapicloud/evo-ai:latest Use this image to pull from the repo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Consider using a separate override file instead of commenting out production image

Using docker-compose.override.yml for environment-specific images keeps the main file clean and prevents outdated commented code.

Suggested implementation:

    image: evoapicloud/evo-ai:latest # Use this image to pull from the repo

Create a new file named docker-compose.override.yml with the following content to use the local image for development:

services:
  api:
    image: evoai-api:latest # Use this image for local builds

This way, the main docker-compose.yml always uses the production image, and local development can override it cleanly.

image: evoai-api:latest # Use this image for local builds
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Avoid using ‘latest’ tag for local builds to prevent confusion with remote images

Using the same 'latest' tag for both local and remote images can cause Docker to pull the wrong image. Use a unique tag like 'local' or 'dev' for local builds.

Suggested change
image: evoai-api:latest # Use this image for local builds
image: evoai-api:local # Use this image for local builds

depends_on:
- postgres
- redis
ports:
- "8000:8000"
env_file:
- .env
environment:
POSTGRES_CONNECTION_STRING: postgresql://postgres:${POSTGRES_PASSWORD:-postgres}@postgres:5432/evo_ai
REDIS_HOST: redis
Expand Down
3 changes: 1 addition & 2 deletions src/utils/mcp_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@

async def _discover_async(config_json: Dict[str, Any]) -> List[Dict[str, Any]]:
"""Return a list[dict] with the tool metadata advertised by the MCP server."""

from src.services.mcp_service import MCPService
from src.services.adk.mcp_service import MCPService

service = MCPService()
tools, exit_stack = await service._connect_to_mcp_server(config_json)
Expand Down
Loading