Fix Docker Compose default profile and error documentation

- 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 <noreply@anthropic.com>
This commit is contained in:
leex279
2025-08-22 18:00:32 +02:00
committed by Wirasm
parent 1e3689c99c
commit a137e52272
2 changed files with 10 additions and 8 deletions

View File

@@ -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: