From 88c662f08d20ceeae805867e9552e20e1977fae0 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 1 Apr 2026 13:00:45 -0700 Subject: [PATCH] feat: switch main compose to Dockerfile.cfcore parent-context build compose.yml was still using build: . which fails because requirements.txt has -e ../circuitforge-core outside the build context. Now matches compose.cloud.yml and compose.test-cfcore.yml. --- compose.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index 8a6957e..0c06bdb 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,9 @@ services: app: - build: . + build: + context: .. + dockerfile: peregrine/Dockerfile.cfcore command: > bash -c "streamlit run app/app.py --server.port=8501 @@ -41,12 +43,37 @@ services: - "host.docker.internal:host-gateway" restart: unless-stopped + api: + build: + context: .. + dockerfile: peregrine/Dockerfile.cfcore + command: > + bash -c "uvicorn dev_api:app --host 0.0.0.0 --port 8601" + volumes: + - ./config:/app/config + - ./data:/app/data + - ${DOCS_DIR:-~/Documents/JobSearch}:/docs + environment: + - STAGING_DB=/app/data/staging.db + - DOCS_DIR=/docs + - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-} + - OPENAI_COMPAT_URL=${OPENAI_COMPAT_URL:-} + - OPENAI_COMPAT_KEY=${OPENAI_COMPAT_KEY:-} + - PEREGRINE_GPU_COUNT=${PEREGRINE_GPU_COUNT:-0} + - PEREGRINE_GPU_NAMES=${PEREGRINE_GPU_NAMES:-} + - PYTHONUNBUFFERED=1 + extra_hosts: + - "host.docker.internal:host-gateway" + restart: unless-stopped + web: build: context: . dockerfile: docker/web/Dockerfile ports: - "${VUE_PORT:-8506}:80" + depends_on: + - api restart: unless-stopped searxng: