Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shashank-H/gaiter-gaurd/llms.txt
Use this file to discover all available pages before exploring further.
Overview
GaiterGuard is deployed using Docker Compose with three services: PostgreSQL database, backend API, and frontend dashboard. This guide covers production deployment steps.Prerequisites
- Docker and Docker Compose installed
- At least 2GB RAM available
- An LLM API key (OpenAI-compatible endpoint)
Quick Start
Configure environment variables
Start services
- PostgreSQL on port 5432
- Backend API on port 3000
- Frontend dashboard on port 4173
Docker Compose Configuration
Thedocker-compose.yaml defines three services:
Production Checklist
Security hardening
Security hardening
- Generate strong random secrets (minimum 32 characters)
- Use environment files with restricted permissions (
chmod 600 .env) - Change default PostgreSQL credentials
- Enable TLS/HTTPS with a reverse proxy (nginx/Caddy)
- Set
NODE_ENV=production - Never commit
.envfiles to version control
Database configuration
Database configuration
- Use persistent volumes for PostgreSQL data
- Configure automated backups
- Monitor connection pool usage
- Set appropriate
max_connectionsfor your workload
Network setup
Network setup
- Run services behind a reverse proxy
- Configure firewall rules (only expose 80/443)
- Use internal Docker network for inter-service communication
- Set up domain with proper DNS records
Monitoring & logging
Monitoring & logging
- Configure log aggregation (e.g., ELK stack)
- Set up uptime monitoring
- Monitor Docker resource usage:
- Check logs regularly:
Updating Services
To update to a new version:Backup & Restore
Database Backup
Restore Database
Troubleshooting
Backend fails to start
Backend fails to start
Check environment variables:Common issues:
- Missing required environment variables
- Invalid
DATABASE_URLformat ENCRYPTION_SECRETless than 32 characters- Database not ready (check healthcheck)
Database connection errors
Database connection errors
Verify database is running:Check connection from backend:
Port conflicts
Port conflicts
If ports are already in use, modify
docker-compose.yaml:Next Steps
Configuration
Configure environment variables and runtime options
Agent Integration
Integrate AI agents with the gateway