fix: cambiar puerto de 8080 a 3000 para compatibilidad con Coolify

- Actualizar Dockerfile para exponer puerto 3000
- Modificar nginx.conf para escuchar en puerto 3000
- Ajustar docker-compose.yml para mapear puerto 3000
- Mantener configuración de usuario appuser y seguridad
This commit is contained in:
Marco Gallegos
2026-01-29 10:48:35 -06:00
parent 0ce55ebedb
commit d7f0bcca52
3 changed files with 4 additions and 4 deletions

View File

@@ -22,8 +22,8 @@ RUN chown -R appuser:appgroup /usr/share/nginx/html && \
# Cambiar al usuario appuser # Cambiar al usuario appuser
USER appuser USER appuser
# Exponer puerto 8080 en lugar de 80 para evitar conflictos # Exponer puerto 3000 (requerido por Coolify)
EXPOSE 8080 EXPOSE 3000
# Iniciar nginx # Iniciar nginx
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View File

@@ -6,7 +6,7 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "8080:8080" - "3000:3000"
environment: environment:
- NGINX_PORT=8080 - NGINX_PORT=8080
restart: unless-stopped restart: unless-stopped

View File

@@ -31,7 +31,7 @@ http {
add_header X-XSS-Protection "1; mode=block" always; add_header X-XSS-Protection "1; mode=block" always;
server { server {
listen 8080; listen 3000;
server_name localhost; server_name localhost;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;