From afd5ea7677ec08fd27fff5c343bc1a7ab9bee12b Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 11 Feb 2025 12:48:06 +0100 Subject: [PATCH] Vuelvo al puerto 80 --- Dockerfile | 2 +- README.md | 6 ++++-- nginx/default.conf | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a35dc8..436eeaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ RUN python -m venv /opt/venv && \ # make our entrypoint.sh executable RUN chmod +x config/entrypoint.sh -EXPOSE 8080 +EXPOSE 80 # execute our entrypoint.sh file CMD ["./config/entrypoint.sh"] diff --git a/README.md b/README.md index c55aa3d..76ea256 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # Versión para openshift -## ATENCIÓN +## permitir a nginx correr con privilegios -Creo que el Dockerfile que hay en el directorio raíz no sirve para nada. +### esto se hace una vez dentro del proyecto. + +oc adm policy add-scc-to-user -z default anyuid ## Instalación diff --git a/nginx/default.conf b/nginx/default.conf index 213d2d0..99f6af4 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -5,7 +5,7 @@ upstream django_project { error_log /var/log/nginx/error.log; server { - listen 8080; + listen 80; access_log /var/log/nginx/access.log;