Quick Start with Docker
✅ Validate Configuration
./validate-docker.sh
🚀 Quick Start
Option 1: With Make (Recommended)
# View available commands
make help
# Build and run
make build
make up
# View logs
make logs
Option 2: With Docker Compose
# Build
docker-compose build
# Run
docker-compose up -d
# View logs
docker-compose logs -f
# Stop
docker-compose down
📋 Initial Configuration
-
Copy environment variables:
cp env.example .env -
Generate secrets:
# NEXTAUTH_SECRET
openssl rand -base64 32
# ENCRYPTION_KEY
openssl rand -hex 32 -
Edit
.envwith your values
🔍 Health Check
curl http://localhost:3000/api/health
🆘 Useful Commands
# View status
make ps
# DB Backup
make backup-db
# Migrations
make migrate
# Clean everything
make clean
📦 Important Files
- ✅
Dockerfile- Image configuration - ✅
docker-compose.yml- Service orchestration - ✅
.env- Environment variables - ✅
Makefile- Automation commands