Initial Django project setup for Postgres cluster management - Created Django project structure with postgres_handholder main app - Added clusters, backups, and monitoring apps - Implemented comprehensive models for PostgresCluster, PostgresInstance, ClusterUser, ClusterDatabase - Added forms and views for cluster management - Created Bootstrap 5 templates with modern UI - Added Docker and Docker Compose configuration - Included Celery for background tasks - Added comprehensive requirements.txt with all dependencies - Updated README with installation and usage instructions - Added environment configuration example - Set up proper URL routing and app structure
This commit is contained in:
31
env.example
Normal file
31
env.example
Normal file
@ -0,0 +1,31 @@
|
||||
# Django Configuration
|
||||
DEBUG=True
|
||||
SECRET_KEY=your-secret-key-here-change-this-in-production
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||
|
||||
# Database Configuration
|
||||
DB_NAME=postgres_handholder
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=your-database-password
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
|
||||
# Celery Configuration
|
||||
CELERY_BROKER_URL=redis://localhost:6379/0
|
||||
CELERY_RESULT_BACKEND=redis://localhost:6379/0
|
||||
|
||||
# AWS S3 Configuration (optional)
|
||||
AWS_ACCESS_KEY_ID=your-aws-access-key
|
||||
AWS_SECRET_ACCESS_KEY=your-aws-secret-key
|
||||
AWS_STORAGE_BUCKET_NAME=your-backup-bucket
|
||||
AWS_S3_REGION_NAME=us-east-1
|
||||
|
||||
# Google Cloud Storage Configuration (optional)
|
||||
GOOGLE_CLOUD_STORAGE_BUCKET=your-gcs-bucket
|
||||
GOOGLE_APPLICATION_CREDENTIALS=path/to/your/credentials.json
|
||||
|
||||
# Docker Configuration
|
||||
DOCKER_HOST=unix://var/run/docker.sock
|
||||
|
||||
# Kubernetes Configuration (optional)
|
||||
KUBECONFIG=path/to/your/kubeconfig
|
Reference in New Issue
Block a user