Add environment configuration and local development documentation

- Parameterize CORS_ORIGINS in docker-compose.swarm.yml
- Add .env.example with configuration options
- Create comprehensive LOCAL_DEVELOPMENT.md guide
- Update README.md with environment variable documentation
- Provide alternatives for local development without production domain

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-10 18:20:52 +10:00
parent daf0766e29
commit f3cbb5c6f7
50 changed files with 6339 additions and 528 deletions

23
.env.example Normal file
View File

@@ -0,0 +1,23 @@
# Hive Environment Configuration
# Copy this file to .env and customize for your environment
# CORS Configuration
# For development: CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# For production: CORS_ORIGINS=https://hive.home.deepblack.cloud
CORS_ORIGINS=https://hive.home.deepblack.cloud
# Database Configuration
DATABASE_URL=postgresql://hive:hivepass@postgres:5432/hive
# Redis Configuration
REDIS_URL=redis://redis:6379
# Environment
ENVIRONMENT=production
# Logging
LOG_LEVEL=info
# Traefik Configuration (for local development)
# Set this if you want to use a different domain for local development
# TRAEFIK_HOST=hive.local.dev