feature/boton-avisos
This commit is contained in:
@@ -11,8 +11,8 @@ services:
|
||||
- PANEL_MSSQL_DOCKER=${PANEL_MSSQL_DOCKER:-true}
|
||||
- IN_DOCKER=true
|
||||
|
||||
# PostgreSQL: catálogo ControlDesk (a24c.*) + usuarios del panel
|
||||
- DB_POSTGRES_HOST=postgres
|
||||
# PostgreSQL: apunta a la a24c local (contenedor a24c-postgres publicado en el host :5432)
|
||||
- DB_POSTGRES_HOST=host.docker.internal
|
||||
- DB_POSTGRES_PORT=5432
|
||||
- DB_POSTGRES_USER=${DB_POSTGRES_USER}
|
||||
- DB_POSTGRES_PASS=${DB_POSTGRES_PASS}
|
||||
@@ -27,10 +27,18 @@ services:
|
||||
- PORT=3000
|
||||
- ORIGIN=https://localhost:3000
|
||||
- NODE_ENV=production
|
||||
|
||||
# SMTP para envío de avisos (opcional — vacío deshabilita el envío real 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:
|
||||
# Map the actual backup folder from host to the container's backup path
|
||||
# Windows path D:/BackupSFTP/ mapped to /data/backups inside container (read-only)
|
||||
- D:/BackupSFTP:/data/backups:ro
|
||||
# Local dev: carpeta escribible del repo con respaldos sintéticos (read-only en el contenedor)
|
||||
- ./local-backups:/data/backups:ro
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
depends_on:
|
||||
@@ -48,7 +56,7 @@ services:
|
||||
POSTGRES_DB: ${DB_POSTGRES_DB}
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "5434:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./database/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
|
||||
|
||||
Reference in New Issue
Block a user