From 3d9bc285ac745be7c5799e96af69f9ccf406c6da Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Mon, 2 Mar 2026 08:19:23 +0100 Subject: [PATCH] Fix backend-compliance DATABASE_URL: use sync psycopg2 instead of asyncpg The DATABASE_URL was using postgresql+asyncpg:// with ?options= for search_path, but database.py uses synchronous SQLAlchemy (create_engine) and asyncpg doesn't support the 'options' keyword argument. The search_path is already set via an event listener in database.py, so the options parameter is unnecessary. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 35e084c..dd27186 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -93,7 +93,7 @@ services: - "8002" environment: PORT: 8002 - DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-breakpilot}:${POSTGRES_PASSWORD:-breakpilot123}@bp-core-postgres:5432/${POSTGRES_DB:-breakpilot_db}?options=-csearch_path%3Dcompliance,core,public + DATABASE_URL: postgresql://${POSTGRES_USER:-breakpilot}:${POSTGRES_PASSWORD:-breakpilot123}@bp-core-postgres:5432/${POSTGRES_DB:-breakpilot_db} JWT_SECRET: ${JWT_SECRET:-your-super-secret-jwt-key-change-in-production} ENVIRONMENT: ${ENVIRONMENT:-development} CONSENT_SERVICE_URL: http://bp-core-consent-service:8081