feat: integración final de Jenkins con inyección de .env segura
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good

This commit is contained in:
minguezsanzjuanjose
2026-04-14 21:30:19 +02:00
parent 9dd97b34f2
commit 039349b5b1
12 changed files with 186 additions and 89 deletions

34
deployments/.env.example Normal file
View File

@@ -0,0 +1,34 @@
# =================================================================
# 🏗️ INFRAESTRUCTURA (Docker & Jenkins)
# =================================================================
# Nombres que tomarán los contenedores en Docker
APP_CONTAINER_NAME=
DB_CONTAINER_NAME=
# Nombre del proyecto para Docker Compose (usado en Jenkins)
PROJECT_NAME=
# Puertos que se abrirán al exterior (Host)
PORT=
DATABASE_EXPOSE_PORT=
# =================================================================
# 🐍 CONFIGURACIÓN DE DJANGO
# =================================================================
# True para desarrollo, False para producción
DEBUG=
# Genera una clave segura: https://djecrety.ir/
SECRET_KEY=
# Lista separada por comas: localhost,127.0.0.1,tudominio.com
ALLOWED_HOSTS=
# =================================================================
# 🗄️ BASE DE DATOS (PostgreSQL)
# =================================================================
DB_NAME=
DB_USER=
DB_PASSWORD=
# El HOST debe ser "db" cuando se usa Docker Compose
DB_HOST=
DB_PORT=