integracion de jenkins Reviewed-on: #8 Co-authored-by: hreyes <hreyes@aduanasoft.com.mx> Co-committed-by: hreyes <hreyes@aduanasoft.com.mx>
48 lines
1.4 KiB
YAML
48 lines
1.4 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}
|
|
|
|
# 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
|