feat: add docker-compose for local database setup, example .env
This commit is contained in:
File diff suppressed because it is too large
Load Diff
11
apps/web/env.example
Normal file
11
apps/web/env.example
Normal 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
15
docker-compose.yaml
Normal 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:
|
Reference in New Issue
Block a user