updated structure and app
This commit is contained in:
112
.env.example
112
.env.example
@@ -1,13 +1,115 @@
|
||||
# ============================================================================
|
||||
# Environment Configuration for Recticel Quality Application
|
||||
# Copy this file to .env and adjust the values as needed
|
||||
# Copy this file to .env and customize for your deployment
|
||||
# ============================================================================
|
||||
|
||||
# Database Configuration
|
||||
MYSQL_ROOT_PASSWORD=rootpassword
|
||||
# ============================================================================
|
||||
# DATABASE CONFIGURATION
|
||||
# ============================================================================
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_NAME=trasabilitate
|
||||
DB_USER=trasabilitate
|
||||
DB_PASSWORD=Initial01!
|
||||
|
||||
# Application Configuration
|
||||
# MySQL/MariaDB root password
|
||||
MYSQL_ROOT_PASSWORD=rootpassword
|
||||
|
||||
# Database performance tuning
|
||||
MYSQL_BUFFER_POOL=256M
|
||||
MYSQL_MAX_CONNECTIONS=150
|
||||
|
||||
# Database connection retry settings
|
||||
DB_MAX_RETRIES=60
|
||||
DB_RETRY_INTERVAL=2
|
||||
|
||||
# Data persistence paths
|
||||
DB_DATA_PATH=/srv/docker-test/mariadb
|
||||
LOGS_PATH=/srv/docker-test/logs
|
||||
INSTANCE_PATH=/srv/docker-test/instance
|
||||
|
||||
# ============================================================================
|
||||
# APPLICATION CONFIGURATION
|
||||
# ============================================================================
|
||||
# Flask environment (development, production)
|
||||
FLASK_ENV=production
|
||||
|
||||
# Secret key for Flask sessions (CHANGE IN PRODUCTION!)
|
||||
SECRET_KEY=change-this-in-production
|
||||
|
||||
# Application port
|
||||
APP_PORT=8781
|
||||
|
||||
# Initialization Flags (set to "false" after first successful deployment)
|
||||
# ============================================================================
|
||||
# GUNICORN CONFIGURATION
|
||||
# ============================================================================
|
||||
# Number of worker processes (default: CPU cores * 2 + 1)
|
||||
# GUNICORN_WORKERS=5
|
||||
|
||||
# Worker class (sync, gevent, gthread)
|
||||
GUNICORN_WORKER_CLASS=sync
|
||||
|
||||
# Request timeout in seconds
|
||||
GUNICORN_TIMEOUT=120
|
||||
|
||||
# Bind address
|
||||
GUNICORN_BIND=0.0.0.0:8781
|
||||
|
||||
# Log level (debug, info, warning, error, critical)
|
||||
GUNICORN_LOG_LEVEL=info
|
||||
|
||||
# Preload application
|
||||
GUNICORN_PRELOAD_APP=true
|
||||
|
||||
# Max requests per worker before restart
|
||||
GUNICORN_MAX_REQUESTS=1000
|
||||
|
||||
# For Docker stdout/stderr logging, uncomment:
|
||||
# GUNICORN_ACCESS_LOG=-
|
||||
# GUNICORN_ERROR_LOG=-
|
||||
|
||||
# ============================================================================
|
||||
# INITIALIZATION FLAGS
|
||||
# ============================================================================
|
||||
# Initialize database schema on first run
|
||||
INIT_DB=true
|
||||
|
||||
# Seed database with default data
|
||||
SEED_DB=true
|
||||
|
||||
# Continue on database initialization errors
|
||||
IGNORE_DB_INIT_ERRORS=false
|
||||
|
||||
# Continue on seeding errors
|
||||
IGNORE_SEED_ERRORS=false
|
||||
|
||||
# Skip application health check
|
||||
SKIP_HEALTH_CHECK=false
|
||||
|
||||
# ============================================================================
|
||||
# LOCALIZATION
|
||||
# ============================================================================
|
||||
TZ=Europe/Bucharest
|
||||
LANG=en_US.UTF-8
|
||||
|
||||
# ============================================================================
|
||||
# DOCKER BUILD ARGUMENTS
|
||||
# ============================================================================
|
||||
VERSION=1.0.0
|
||||
BUILD_DATE=
|
||||
VCS_REF=
|
||||
|
||||
# ============================================================================
|
||||
# NETWORK CONFIGURATION
|
||||
# ============================================================================
|
||||
NETWORK_SUBNET=172.20.0.0/16
|
||||
|
||||
# ============================================================================
|
||||
# NOTES:
|
||||
# ============================================================================
|
||||
# 1. Copy this file to .env in the same directory as docker-compose.yml
|
||||
# 2. Customize the values for your environment
|
||||
# 3. NEVER commit .env to version control
|
||||
# 4. Add .env to .gitignore
|
||||
# 5. For production, use strong passwords and secrets
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user