# compose.test-cfcore.yml — single-user test instance for circuitforge-core integration
#
# Run from the PARENT directory of peregrine/ (the build context must include
# both peregrine/ and circuitforge-core/ as siblings):
#
#   cd /devl   (or /Library/Development/CircuitForge on dev)
#   docker compose -f peregrine/compose.test-cfcore.yml --project-name peregrine-test up -d
#   docker compose -f peregrine/compose.test-cfcore.yml --project-name peregrine-test logs -f
#   docker compose -f peregrine/compose.test-cfcore.yml --project-name peregrine-test down
#
# UI: http://localhost:8516
# Purpose: smoke-test circuitforge-core shims (db, llm_router, tiers, task_scheduler)
#          before promoting cfcore integration to the production cloud instance.

services:
  app:
    build:
      context: ..
      dockerfile: peregrine/Dockerfile.cfcore
    container_name: peregrine-test-cfcore
    ports:
      - "8516:8501"
    volumes:
      - /devl/job-seeker:/devl/job-seeker
      - /devl/job-seeker/config:/app/config
      - /devl/job-seeker/config/llm.docker.yaml:/app/config/llm.yaml:ro
      - /devl/job-seeker/config/user.docker.yaml:/app/config/user.yaml:ro
    environment:
      - STAGING_DB=/devl/job-seeker/staging.db
      - PYTHONUNBUFFERED=1
      - STREAMLIT_SERVER_BASE_URL_PATH=
      - CF_ORCH_URL=http://host.docker.internal:7700
    extra_hosts:
      - "host.docker.internal:host-gateway"
    restart: "no"
