Initial project structure: Next.js 15 + TypeScript + Drizzle ORM
- Next.js 15 with App Router, TypeScript, Tailwind CSS - Directory structure per LegalAI architecture plan - Docker Compose setup (PostgreSQL 16, Meilisearch, App) - Drizzle ORM with base schema (tenants, users, norms, decisions) - AI abstraction layer structure (Vercel AI SDK) - Normen-Engine with Quellenrang hierarchy - Search abstraction layer - Auth placeholder (NextAuth.js) Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
49
docker-compose.yml
Normal file
49
docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://legalai:legalai@postgres:5432/legalai
|
||||
- MEILISEARCH_URL=http://meilisearch:7700
|
||||
- MEILISEARCH_API_KEY=${MEILISEARCH_API_KEY:-masterKey}
|
||||
- NEXTAUTH_URL=http://localhost:3000
|
||||
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
||||
- AI_PROVIDER=${AI_PROVIDER:-anthropic}
|
||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
||||
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
meilisearch:
|
||||
condition: service_started
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: legalai
|
||||
POSTGRES_PASSWORD: legalai
|
||||
POSTGRES_DB: legalai
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U legalai"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
meilisearch:
|
||||
image: getmeili/meilisearch:v1.11
|
||||
environment:
|
||||
- MEILI_MASTER_KEY=${MEILISEARCH_API_KEY:-masterKey}
|
||||
- MEILI_ENV=development
|
||||
ports:
|
||||
- "7700:7700"
|
||||
volumes:
|
||||
- meilisearch_data:/meili_data
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
meilisearch_data:
|
||||
Reference in New Issue
Block a user