feat: migrate from PocketBase to PostgreSQL with Drizzle ORM

- Add @project-e/db package with Drizzle schema and migrations
- Replace PocketBase client with PostgreSQL-based database client
- Migrate auth from custom to NextAuth.js
- Add Docker Compose with PostgreSQL container
- Update worker to use new database client
- Remove PocketBase-specific files and migrations
- Add drizzle config and initial migration
This commit is contained in:
2026-07-24 07:08:29 -04:00
parent 6c438eab32
commit 73335484f8
42 changed files with 2895 additions and 2796 deletions
+8 -3
View File
@@ -1,9 +1,14 @@
# Project E Environment Configuration
# Copy this file to .env and fill in the values
# PocketBase Configuration
POCKETBASE_URL=http://db:8090
POCKETBASE_ADMIN_TOKEN=your-secure-random-token-here
# PostgreSQL Configuration
POSTGRES_PASSWORD=replace-with-a-long-random-password
DATABASE_URL=postgresql://project_e:replace-with-a-long-random-password@localhost:5432/project_e
# Authentication
NEXTAUTH_SECRET=replace-with-a-long-random-secret
INITIAL_ADMIN_EMAIL=admin@example.com
INITIAL_ADMIN_PASSWORD=replace-with-a-long-random-password
# Application Configuration
NODE_ENV=production