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:
parent
1e3689c99c
commit
a137e52272
@ -49,7 +49,7 @@ export const BackendStartupError: React.FC = () => {
|
||||
After fixing the issue in your .env file, recreate the Docker containers:
|
||||
</p>
|
||||
<code className="block mt-2 p-2 bg-black/70 rounded text-red-100 font-mono text-sm">
|
||||
docker compose down && docker compose up -d
|
||||
docker compose down && docker compose --profile full up -d
|
||||
</code>
|
||||
<p className="text-red-300 text-xs mt-2">
|
||||
Note: Use 'down' and 'up', not 'restart' - containers need to be recreated to load new environment variables
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user