Migrate from local Supabase stack to external Supabase instance

- Reduce docker-compose from 6 services to 1 (worker only)
- Connect via supavisor pooled port (6543) on dedicated Supabase
- Add willhaben_tracker schema with search_path in asyncpg pool init
- Create consolidated migration SQL for Supabase SQL Editor
- Update .env.example with new connection pattern
This commit is contained in:
2026-07-04 10:33:27 +02:00
parent 46c1b01e98
commit 98c71d4232
4 changed files with 128 additions and 98 deletions
+1
View File
@@ -18,6 +18,7 @@ async def get_pool() -> asyncpg.Pool:
database=os.getenv("POSTGRES_DB", "postgres"),
min_size=2,
max_size=10,
init="SET search_path TO willhaben_tracker"
)
logger.info("Database pool initialized")
return _pool