feature/jenkins-integration (#8)

integracion de jenkins

Reviewed-on: #8
Co-authored-by: hreyes <hreyes@aduanasoft.com.mx>
Co-committed-by: hreyes <hreyes@aduanasoft.com.mx>
This commit is contained in:
2026-06-09 14:57:11 +00:00
committed by acazares
parent 4642086e8c
commit 3e5557c034
2 changed files with 305 additions and 0 deletions

47
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,47 @@
services:
app:
image: dev.aduanasoft.com:8443/panel-bases-anexo24/app:latest
restart: unless-stopped
ports:
- "3000:3000"
environment:
# SQL Server: credenciales globales (server_name/database_name vienen de a24c.database_nodes en Postgres)
- PANEL_MSSQL_USER=${PANEL_MSSQL_USER}
- PANEL_MSSQL_PASSWORD=${PANEL_MSSQL_PASSWORD}
- PANEL_MSSQL_DOCKER=true
- IN_DOCKER=true
# PostgreSQL: BD externa (ControlDesk), accesible desde el host
- DB_POSTGRES_HOST=host.docker.internal
- DB_POSTGRES_PORT=${DB_POSTGRES_PORT:-5432}
- DB_POSTGRES_USER=${DB_POSTGRES_USER}
- DB_POSTGRES_PASS=${DB_POSTGRES_PASS}
- DB_POSTGRES_DB=${DB_POSTGRES_DB}
# JWT
- JWT_SECRET=${JWT_SECRET}
# Ruta de respaldos montada desde el host
- BACKUP_PATH=/data/backups
- PORT=3000
- ORIGIN=${ORIGIN}
- NODE_ENV=production
# SMTP para avisos (opcional — vacío deshabilita el envío sin errores)
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USER=${SMTP_USER:-}
- SMTP_PASSWORD=${SMTP_PASSWORD:-}
- SMTP_FROM=${SMTP_FROM:-}
- SMTP_USE_TLS=${SMTP_USE_TLS:-true}
volumes:
- ${BACKUP_HOST_PATH}:/data/backups
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- aduanasoft-network
networks:
aduanasoft-network:
external: true