Some checks failed
CI / test (push) Failing after 20s
sync_ui_cookie() was calling window.parent.location.reload() on every render when user.yaml has ui_preference=vue, but no Caddy is in the traffic path (test instances, bare Docker). This caused an infinite reload loop because the reload just came back to Streamlit. Gate the reload on PEREGRINE_CADDY_PROXY=1. Without it, the cookie is still written silently but no reload is attempted. Add the env var to compose.yml and compose.cloud.yml (both are behind Caddy); omit from compose.test-cfcore.yml so test instances stay stable.
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
# 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
|
|
environment:
|
|
- STAGING_DB=/devl/job-seeker/staging.db
|
|
- PYTHONUNBUFFERED=1
|
|
- STREAMLIT_SERVER_BASE_URL_PATH=
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
restart: "no"
|