Files
cannaiq/docker-compose.local.yml
Kelly b4a2fb7d03 feat: Add v2 architecture with multi-state support and orchestrator services
Major additions:
- Multi-state expansion: states table, StateSelector, NationalDashboard, StateHeatmap, CrossStateCompare
- Orchestrator services: trace service, error taxonomy, retry manager, proxy rotator
- Discovery system: dutchie discovery service, geo validation, city seeding scripts
- Analytics infrastructure: analytics v2 routes, brand/pricing/stores intelligence pages
- Local development: setup-local.sh starts all 5 services (postgres, backend, cannaiq, findadispo, findagram)
- Migrations 037-056: crawler profiles, states, analytics indexes, worker metadata

Frontend pages added:
- Discovery, ChainsDashboard, IntelligenceBrands, IntelligencePricing, IntelligenceStores
- StateHeatmap, CrossStateCompare, SyncInfoPanel

Components added:
- StateSelector, OrchestratorTraceModal, WorkflowStepper

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-07 11:30:57 -07:00

71 lines
1.8 KiB
YAML

# Local Development Stack - NO MinIO
#
# Usage:
# docker-compose -f docker-compose.local.yml up
#
# Or use the convenience script:
# ./start-local.sh
#
# This runs:
# - PostgreSQL database
# - Backend API server
# - Local filesystem storage (./storage)
#
# NO MinIO, NO remote connections, NO Kubernetes
services:
postgres:
image: postgres:15-alpine
container_name: cannaiq-postgres
environment:
POSTGRES_DB: dutchie_legacy
POSTGRES_USER: dutchie
POSTGRES_PASSWORD: dutchie_local_pass
ports:
- "54320:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dutchie"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: cannaiq-backend
environment:
NODE_ENV: development
PORT: 3000
# CannaiQ database connection - individual env vars
# These match what postgres service uses (POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD)
CANNAIQ_DB_HOST: postgres
CANNAIQ_DB_PORT: "5432"
CANNAIQ_DB_NAME: dutchie_legacy
CANNAIQ_DB_USER: dutchie
CANNAIQ_DB_PASS: dutchie_local_pass
# Local storage - NO MinIO
STORAGE_DRIVER: local
STORAGE_BASE_PATH: /app/storage
STORAGE_PUBLIC_URL: /storage
# No MinIO env vars - forces local storage
# MINIO_ENDPOINT is intentionally NOT set
JWT_SECRET: local_dev_jwt_secret_change_in_production
ADMIN_EMAIL: admin@example.com
ADMIN_PASSWORD: password
ports:
- "3010:3000"
volumes:
- ./backend:/app
- /app/node_modules
- ./storage:/app/storage
depends_on:
postgres:
condition: service_healthy
command: npm run dev
volumes:
postgres_data: