From 08d5674fbf391cc46d4478a1b1259299c33c3755 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 13 Jun 2026 12:35:04 -0400 Subject: [PATCH] el cambio de puerto 8888 --- .env.example | 2 ++ README.md | 4 ++-- docker-compose.yml | 2 +- docker-update.ps1 | 2 +- docker-update.sh | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 1dd14a0..e8b44c7 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,5 @@ JWT_SECRET=cambiar-por-un-secreto-largo-y-aleatorio +# Puerto web Don Marco en el host (Docker). Cambiar si 8888 está ocupado. +DONMARCO_WEB_PORT=8888 # Puerto API (solo desarrollo local sin Docker) PORT=4000 diff --git a/README.md b/README.md index 8214cee..f1e1568 100644 --- a/README.md +++ b/README.md @@ -111,14 +111,14 @@ curl http://localhost:4000/api/health Debe responder `"version": "1.2.0"` y `"features": ["historial-gestiones", "cierre-gestion", ...]`. -En el navegador (`http://IP-DEL-SERVIDOR:8080`): +En el navegador (`http://IP-DEL-SERVIDOR:8888` por defecto): - Pestaña **Administración** (solo usuario JEFE) → sección **Cierre de gestión** - Cada planilla tiene **barra lateral** con gestiones anteriores (solo lectura) - Al pie: **Don Marco v1.2.0 — Historial de gestiones (Docker)** ### Acceso en la red -- **Web:** `http://IP-DEL-SERVIDOR:8080` (puerto 8080; el 80 queda libre para otras apps) +- **Web:** `http://IP-DEL-SERVIDOR:8888` (puerto configurable en `.env` → `DONMARCO_WEB_PORT`) - **API:** `http://IP-DEL-SERVIDOR:4000/api/health` ### Cierre de gestión (solo JEFE) diff --git a/docker-compose.yml b/docker-compose.yml index d6a531b..86a6370 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,7 +40,7 @@ services: container_name: donmarco-web restart: unless-stopped ports: - - "8080:80" + - "${DONMARCO_WEB_PORT:-8888}:80" depends_on: backend: condition: service_healthy diff --git a/docker-update.ps1 b/docker-update.ps1 index 4286266..e701ce6 100644 --- a/docker-update.ps1 +++ b/docker-update.ps1 @@ -28,7 +28,7 @@ try { Write-Host "" Write-Host "Listo. Abra en el navegador:" -ForegroundColor Green -Write-Host " http://localhost:8080" -ForegroundColor White +Write-Host " http://localhost:8888 (o el puerto en .env: DONMARCO_WEB_PORT)" -ForegroundColor White Write-Host " Usuario: JEFE | Contrasena: MACAN" -ForegroundColor White Write-Host " Menu: pestana 'Administracion' > seccion Cierre de gestion" -ForegroundColor White Write-Host " Pie de pagina debe decir: v1.2.0 — Historial de gestiones (Docker)" -ForegroundColor White diff --git a/docker-update.sh b/docker-update.sh index db8191a..0f875e1 100644 --- a/docker-update.sh +++ b/docker-update.sh @@ -14,7 +14,7 @@ sleep 5 curl -s http://localhost:4000/api/health || true echo "" echo "" -echo "Listo. Abra: http://localhost:8080" +echo "Listo. Abra: http://localhost:8888 (o el puerto en .env: DONMARCO_WEB_PORT)" echo "Usuario: JEFE | Contraseña: MACAN" echo "Menú: pestaña 'Administración' > sección Cierre de gestión" echo "Cada planilla tiene barra lateral con gestiones anteriores (solo lectura)"