Files
notytex/docker/.env.example

90 lines
3.2 KiB
Plaintext

# Configuration Docker Compose pour Notytex v2
# COPIEZ CE FICHIER EN .env ET MODIFIEZ LES VALEURS
# =============================================================================
# SÉCURITÉ - OBLIGATOIRE
# =============================================================================
# ⚠️ IMPORTANT: Générez une clé SECRET_KEY unique et sécurisée !
# Commande: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=CHANGEZ-MOI-cle-secrete-unique-minimum-32-caracteres-obligatoire
# =============================================================================
# CONFIGURATION PRODUCTION (Images du registre)
# =============================================================================
# URL du registre Docker (exemples ci-dessous)
# - Docker Hub: docker.io
# - GitHub Container Registry: ghcr.io
# - GitLab Registry: registry.gitlab.com
# - Gitea Registry: git.example.com
REGISTRY_URL=git.opytex.org
# Namespace/organisation sur le registre
# Exemples: votre-username, votre-organisation, notytex
REGISTRY_NAMESPACE=notytex
# Tag de l'image (version)
# Exemples: latest, v2.0.0, main, develop
IMAGE_TAG=latest
# =============================================================================
# PORTS EXPOSÉS
# =============================================================================
# Port du backend API (défaut: 8080)
BACKEND_PORT=8080
# Port du frontend web (défaut: 8081)
FRONTEND_PORT=8081
# =============================================================================
# BASE DE DONNÉES
# =============================================================================
# L'URL de la base de données est fixée en SQLite dans compose.yaml
# Le fichier est stocké dans ../data/school_management.db (volume persistant)
# Pour changer de DB (PostgreSQL, MySQL), modifiez compose.yaml
# =============================================================================
# CONFIGURATION APPLICATIVE
# =============================================================================
# Niveau de logs (DEBUG, INFO, WARNING, ERROR)
LOG_LEVEL=INFO
# CORS - Domaines autorisés (format JSON array)
# En production, ajustez avec vos vrais domaines
CORS_ORIGINS=["http://localhost:8081","http://localhost:8080","https://votre-domaine.com"]
# =============================================================================
# CONFIGURATION EMAIL (Optionnel - pour envoi de bilans)
# =============================================================================
# Serveur SMTP
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USERNAME=votre-email@gmail.com
# SMTP_PASSWORD=votre-mot-de-passe-app
# EMAIL_FROM=votre-email@gmail.com
# SMTP_USE_TLS=true
# =============================================================================
# NOTES D'UTILISATION
# =============================================================================
# MODE DÉVELOPPEMENT (build local avec hot-reload):
# cd docker
# docker compose up
# (utilise automatiquement compose.yaml + compose.override.yaml)
# MODE PRODUCTION (images du registre):
# cd docker
# docker compose -f compose.yaml up -d
# (utilise uniquement compose.yaml, sans override)
# ACCÈS:
# - Frontend: http://localhost:8081
# - API Backend: http://localhost:8080
# - API Docs: http://localhost:8080/api/v2/docs