From eefdc6b33a2fba2d5a91e387e716175537f7d73c Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Tue, 7 Jan 2025 10:40:59 +0000 Subject: [PATCH 1/2] Get nginx to listen on port 9090 port 80 is privileged and blocked in Linux systems (unless we run the container as privileged). Let's listen on port 9090 instead. --- dockerfile | 2 +- nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index d6810cd..826c14a 100644 --- a/dockerfile +++ b/dockerfile @@ -15,6 +15,6 @@ FROM nginx:stable-alpine COPY --from=builder /usr/src/app/dist /usr/share/nginx/html -EXPOSE 80 +EXPOSE 9090 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 5cb9648..3adfe58 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ server { - listen 80; + listen 90; server_name localhost; From 4accfe3d62cba8bdb6c7e7f466cd7d27bb04b14c Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Tue, 7 Jan 2025 10:49:06 +0000 Subject: [PATCH 2/2] Wrong port --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 3adfe58..3675435 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ server { - listen 90; + listen 9090; server_name localhost;