Environment Variables
All configuration is managed through the.env file in the docker directory.
Core Secrets
.env
Generating Secrets
Use the provided utility script:API Keys
JWT-based API keys for client authentication:Generate new keys using the JWT tool with your custom
JWT_SECRET.URLs and Networking
Database Configuration
Connection Pooling (Supavisor)
Authentication Settings
SMTP Configuration
Configure email sending for auth emails:- SendGrid
- AWS SES
- Mailgun
- Gmail
OAuth Providers
Enable third-party authentication:docker-compose.yml:
Storage Configuration
Local File Storage:Image Transformations
Analytics & Logging
Edge Functions
Advanced Settings
Service-Specific Configuration
PostgreSQL
Customize Postgres settings involumes/db/postgresql.conf:
Kong API Gateway
Editvolumes/api/kong.yml to customize routes and plugins:
Vector Logging
Configure log pipeline involumes/logs/vector.yml:
Database Backups
Manual Backup
Automated Backups
Create a backup script:backup.sh
Restore from Backup
Point-in-Time Recovery (PITR)
Enable WAL archiving for PITR:1
Configure WAL Archiving
Add to
volumes/db/postgresql.conf:2
Create Archive Directory
3
Take Base Backup
4
Restore to Point in Time
Create
recovery.conf:Performance Tuning
Database Optimization
Connection Pooling
Always use Supavisor for web applications:Resource Limits
Set Docker resource limits indocker-compose.yml:
Health Checks
Monitor service health:health-check.sh
Next Steps
Security
Harden your installation for production
Updates
Keep services up-to-date
Docker Guide
Back to Docker installation
Monitoring
Set up monitoring and alerts
