df5b61f42a
- Add multi-stage Dockerfile with standalone Next.js output - Add docker-compose.yml with Caddy reverse proxy - Add nginx configs for local and SSL setups - Add Caddyfile for automatic HTTPS - Add docker-entrypoint.sh for runtime config - Add .env.example and .dockerignore - Add comprehensive Docker README - Add /api/health endpoint for container health checks - Configure next.config.ts for standalone output
55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# ===========================================
|
|
# Synapsis Docker Environment Configuration
|
|
# ===========================================
|
|
# Copy this file to .env and configure your values
|
|
|
|
# ===========================================
|
|
# Required Settings
|
|
# ===========================================
|
|
|
|
# Domain Configuration
|
|
# Replace with your actual domain
|
|
DOMAIN=your-domain.com
|
|
|
|
# Database Credentials
|
|
# Change these to secure values!
|
|
DB_USER=synapsis
|
|
DB_PASSWORD=your-secure-password-here
|
|
DB_NAME=synapsis
|
|
|
|
# Authentication Secret
|
|
# Generate with: openssl rand -hex 32
|
|
AUTH_SECRET=your-secret-key-here-minimum-32-characters
|
|
|
|
# Admin Users
|
|
# Comma-separated list of email addresses with admin access
|
|
ADMIN_EMAILS=admin@your-domain.com
|
|
|
|
# ===========================================
|
|
# S3-Compatible Storage (Required for uploads)
|
|
# ===========================================
|
|
# You can use AWS S3, MinIO, Wasabi, Backblaze B2, etc.
|
|
|
|
STORAGE_ENDPOINT=https://s3.your-provider.com
|
|
STORAGE_REGION=us-east-1
|
|
STORAGE_BUCKET=synapsis-uploads
|
|
STORAGE_ACCESS_KEY=your-access-key
|
|
STORAGE_SECRET_KEY=your-secret-key
|
|
STORAGE_PUBLIC_BASE_URL=https://cdn.your-domain.com
|
|
|
|
# ===========================================
|
|
# Optional Settings
|
|
# ===========================================
|
|
|
|
# Maximum bots per user (default: 5)
|
|
# BOT_MAX_PER_USER=5
|
|
|
|
# Redis configuration (if using external Redis)
|
|
# REDIS_URL=redis://redis:6379
|
|
|
|
# ===========================================
|
|
# Docker Compose Settings
|
|
# ===========================================
|
|
|
|
# COMPOSE_PROJECT_NAME=synapsis
|