Initial commit: MOPC platform with Docker deployment setup
Full Next.js 15 platform with tRPC, Prisma, PostgreSQL, NextAuth. Includes production Dockerfile (multi-stage, port 7600), docker-compose with registry-based image pull, Gitea Actions CI workflow, nginx config for portal.monaco-opc.com, deployment scripts, and DEPLOYMENT.md guide. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
60
docker/.env.production
Normal file
60
docker/.env.production
Normal file
@@ -0,0 +1,60 @@
|
||||
# =============================================================================
|
||||
# MOPC Platform - Production Environment Variables
|
||||
# =============================================================================
|
||||
# Copy this file to docker/.env and fill in real values:
|
||||
# cp docker/.env.production docker/.env
|
||||
#
|
||||
# Generate secrets with:
|
||||
# openssl rand -base64 32
|
||||
|
||||
# =============================================================================
|
||||
# DATABASE
|
||||
# =============================================================================
|
||||
DB_PASSWORD=CHANGE_ME_use_openssl_rand
|
||||
|
||||
# =============================================================================
|
||||
# AUTHENTICATION (NextAuth.js / Auth.js)
|
||||
# =============================================================================
|
||||
NEXTAUTH_URL=https://portal.monaco-opc.com
|
||||
NEXTAUTH_SECRET=CHANGE_ME_use_openssl_rand
|
||||
|
||||
# =============================================================================
|
||||
# FILE STORAGE (MinIO - external stack)
|
||||
# =============================================================================
|
||||
# Internal endpoint (server-to-server, within Docker host)
|
||||
MINIO_ENDPOINT=http://localhost:9000
|
||||
|
||||
# Public endpoint for browser-accessible pre-signed URLs
|
||||
# Set this when MinIO is behind a reverse proxy
|
||||
# MINIO_PUBLIC_ENDPOINT=https://storage.monaco-opc.com
|
||||
|
||||
MINIO_ACCESS_KEY=CHANGE_ME
|
||||
MINIO_SECRET_KEY=CHANGE_ME
|
||||
MINIO_BUCKET=mopc-files
|
||||
|
||||
# =============================================================================
|
||||
# EMAIL (SMTP via Poste.io - external stack)
|
||||
# =============================================================================
|
||||
SMTP_HOST=localhost
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=noreply@monaco-opc.com
|
||||
SMTP_PASS=CHANGE_ME
|
||||
EMAIL_FROM=MOPC Platform <noreply@monaco-opc.com>
|
||||
|
||||
# =============================================================================
|
||||
# AI (OpenAI - optional)
|
||||
# =============================================================================
|
||||
OPENAI_API_KEY=
|
||||
OPENAI_MODEL=gpt-4o
|
||||
|
||||
# =============================================================================
|
||||
# DOCKER REGISTRY (Gitea container registry)
|
||||
# =============================================================================
|
||||
# The Gitea registry URL where the CI pushes built images
|
||||
# Example: gitea.example.com/your-org
|
||||
REGISTRY_URL=code.letsbe.solutions/letsbe
|
||||
|
||||
# =============================================================================
|
||||
# APPLICATION
|
||||
# =============================================================================
|
||||
MAX_FILE_SIZE=524288000
|
||||
Reference in New Issue
Block a user