From a137e52272a93e163112455aeb7980627ec5e81b Mon Sep 17 00:00:00 2001 From: leex279 Date: Fri, 22 Aug 2025 18:00:32 +0200 Subject: [PATCH] Fix Docker Compose default profile and error documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 'default' profile to all services so 'docker compose up --build -d' works without --profile flag - Update BackendStartupError.tsx to include '--profile full' in Docker command examples - Update docker-compose.yml comments to document the new default behavior This allows users to run either: - docker compose up --build -d (uses default profile, starts all services) - docker compose --profile full up --build -d (explicit profile, same result) - docker compose --profile backend up --build -d (backend services only) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../src/components/BackendStartupError.tsx | 2 +- docker-compose.yml | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/archon-ui-main/src/components/BackendStartupError.tsx b/archon-ui-main/src/components/BackendStartupError.tsx index 8d6447ea..3aee49ea 100644 --- a/archon-ui-main/src/components/BackendStartupError.tsx +++ b/archon-ui-main/src/components/BackendStartupError.tsx @@ -49,7 +49,7 @@ export const BackendStartupError: React.FC = () => { After fixing the issue in your .env file, recreate the Docker containers:

- docker compose down && docker compose up -d + docker compose down && docker compose --profile full up -d

Note: Use 'down' and 'up', not 'restart' - containers need to be recreated to load new environment variables diff --git a/docker-compose.yml b/docker-compose.yml index a7a40cac..103a4626 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,17 @@ # Docker Compose Profiles Strategy: # - "backend": Starts only backend services (server, mcp, agents) for hybrid development # - "frontend": Starts only the frontend UI service -# - "full": Starts all services for complete Docker deployment +# - "full": Starts all services for complete Docker deployment (same as default) +# - "default": All services start when no profile is specified # Use --profile flag to control which services start: -# docker compose --profile backend up # Backend only for hybrid dev (or docker-compose) -# docker compose --profile full up # Everything in Docker (or docker-compose) +# docker compose up # All services (default profile) +# docker compose --profile backend up # Backend only for hybrid dev +# docker compose --profile full up # Everything in Docker (same as default) services: # Server Service (FastAPI + Socket.IO + Crawling) archon-server: - profiles: ["backend", "full"] + profiles: ["backend", "full", "default"] build: context: ./python dockerfile: Dockerfile.server @@ -64,7 +66,7 @@ services: # Lightweight MCP Server Service (HTTP-based) archon-mcp: - profiles: ["backend", "full"] + profiles: ["backend", "full", "default"] build: context: ./python dockerfile: Dockerfile.mcp @@ -109,7 +111,7 @@ services: # AI Agents Service (ML/Reranking) archon-agents: - profiles: ["backend", "full"] + profiles: ["backend", "full", "default"] build: context: ./python dockerfile: Dockerfile.agents @@ -144,7 +146,7 @@ services: # Frontend archon-frontend: - profiles: ["frontend", "full"] + profiles: ["frontend", "full", "default"] build: ./archon-ui-main container_name: archon-ui ports: