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:
+8
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user