feat: add docker-compose for local database setup, example .env

This commit is contained in:
Hyteq
2025-06-23 08:52:37 +03:00
parent 8e519ca7e1
commit e73e3506fc
3 changed files with 255 additions and 444 deletions

File diff suppressed because it is too large Load Diff

11
apps/web/env.example Normal file
View File

@ -0,0 +1,11 @@
# Environment Variables Example
# Copy this file to .env.local and update the values as needed
DATABASE_URL="postgresql://appcut:appcutthegoat@localhost:5432/appcut"
# Next.js Configuration
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-secret-key-here
# Development Environment
NODE_ENV=development

15
docker-compose.yaml Normal file
View File

@ -0,0 +1,15 @@
services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: appcut
POSTGRES_PASSWORD: appcutthegoat
POSTGRES_DB: appcut
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres_data: