mirror of
https://github.com/coleam00/Archon
synced 2026-04-21 13:37:41 +00:00
* Add Archon distribution config and directory structure
- Create centralized path resolution in src/utils/archon-paths.ts
- Add YAML configuration system (src/config/) with layered loading
- Update Dockerfile and docker-compose for /.archon/ directory
- Add GHCR publish workflow for multi-arch Docker builds
- Create deploy/ directory with end-user docker-compose
- Add /init command to create .archon structure in repos
- Add docs/configuration.md reference guide
- Update README with Quick Start section
- Add bun run validate script
- Update tests for new path defaults (~/.archon/)
Directory structure:
- Local: ~/.archon/{workspaces,worktrees,config.yaml}
- Docker: /.archon/{workspaces,worktrees}
- Repo: .archon/{commands,workflows,config.yaml}
Legacy WORKSPACE_PATH and WORKTREE_BASE env vars still supported.
* Complete Archon distribution config implementation
- Wire up config system in src/index.ts (Task 3.5)
- Remove legacy WORKSPACE_PATH and WORKTREE_BASE support
- Add logConfig() function to config-loader.ts
- Update docker-compose.yml to use ARCHON_DOCKER env var
- Remove legacy env vars from .env.example
- Update all documentation to reference ARCHON_HOME
- Create scripts/validate-setup.sh for setup validation
- Add setup:check script to package.json
- Create docs/getting-started.md guide
- Create docs/archon-architecture.md technical docs
- Update tests to use ARCHON_HOME instead of legacy vars
- Fix validate.md command template for new paths
All plan phases now complete:
- Phase 1: Archon Directory Structure
- Phase 2: Docker Distribution
- Phase 3: YAML Configuration System
- Phase 4: Developer Experience
- Phase 5: Documentation
70 lines
2 KiB
YAML
70 lines
2 KiB
YAML
services:
|
|
# Use this for external databases (Supabase, Neon, etc.)
|
|
# Command: docker-compose --profile external-db up
|
|
app:
|
|
profiles: ["external-db"]
|
|
build: .
|
|
env_file: .env
|
|
environment:
|
|
# Signal Docker environment for Archon path detection
|
|
ARCHON_DOCKER: "true"
|
|
ports:
|
|
- "${PORT:-3000}:${PORT:-3000}"
|
|
volumes:
|
|
- archon_data:/.archon # All Archon-managed data (workspaces, worktrees, config)
|
|
restart: unless-stopped
|
|
dns:
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
sysctls:
|
|
- net.ipv6.conf.all.disable_ipv6=1
|
|
|
|
# Use this for local Docker database
|
|
# Command: docker-compose --profile with-db up
|
|
app-with-db:
|
|
profiles: ["with-db"]
|
|
build: .
|
|
env_file: .env
|
|
environment:
|
|
# Override DATABASE_URL to use Docker service name
|
|
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/remote_coding_agent
|
|
# Signal Docker environment for Archon path detection
|
|
ARCHON_DOCKER: "true"
|
|
ports:
|
|
- "${PORT:-3000}:${PORT:-3000}"
|
|
volumes:
|
|
- archon_data:/.archon # All Archon-managed data (workspaces, worktrees, config)
|
|
restart: unless-stopped
|
|
dns:
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
sysctls:
|
|
- net.ipv6.conf.all.disable_ipv6=1
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: postgres:18
|
|
profiles: ["with-db"]
|
|
environment:
|
|
POSTGRES_DB: remote_coding_agent
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql
|
|
# Auto-run combined migration on first startup
|
|
- ./migrations/000_combined.sql:/docker-entrypoint-initdb.d/000_combined.sql:ro
|
|
# Mount all migrations for manual updates (accessible via /migrations inside container)
|
|
- ./migrations:/migrations:ro
|
|
ports:
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgres_data:
|
|
archon_data: # Persistent Archon data
|