Some checks failed
Aduanasoft/PANEL_BASES_ANEXO24/pipeline/head There was a failure building this commit
- Added new environment variables for deduplication and SQL Server password encryption. - Updated docker-compose files to include SECRET_KEY and ENCRYPTION_KEY for compatibility with a24c. - Enhanced the navigation structure to reflect changes in admin-only views and report access. - Introduced new functions for handling SQL Server connections and database management, including parsing server addresses and listing user databases. This update improves security and functionality related to database management and user access control. Reviewed-on: #15 Co-authored-by: AlexeerCT <acazares@aduanasoft.com.mx> Co-committed-by: AlexeerCT <acazares@aduanasoft.com.mx>
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
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}
|
|
|
|
# Clave Fernet compartida con a24c para cifrar la contraseña SQL de los nodos.
|
|
# DEBE ser idéntica a la SECRET_KEY del backend de a24c.
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
# [LEGADO] Solo si existen credenciales en el formato antiguo `gcm:` por migrar.
|
|
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-}
|
|
|
|
# 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
|