From e4026bd2f4196c0c70789d52efa38752d70b52f2 Mon Sep 17 00:00:00 2001 From: Garrett Mathers Date: Tue, 2 May 2023 21:48:29 -0500 Subject: [PATCH] Minor tweak to nginx port allocation --- .flaskenv | 2 +- docker-compose.prod.yml | 2 +- services/nginx/Dockerfile | 2 +- services/nginx/{default.conf => prod.conf} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename services/nginx/{default.conf => prod.conf} (100%) diff --git a/.flaskenv b/.flaskenv index 6b81577..55a2911 100644 --- a/.flaskenv +++ b/.flaskenv @@ -9,4 +9,4 @@ POSTGRES_USER=adminadminSECURE!!! POSTGRES_PASSWORD=ThisIsProductionBaby!! POSTGRES_DB=greenwatch_production SECRET_KEY=317aed4a0352d37253f433dc475fa5e7e306de7ad657add546d34f4e7c8b046c -SERVER_IP="40.112.52.52:5000" \ No newline at end of file +SERVER_IP="40.112.52.52:80" \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 72db38b..c206146 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -25,7 +25,7 @@ services: context: ./services/nginx dockerfile: Dockerfile ports: - - 80:80 + - "8000:80" depends_on: - web diff --git a/services/nginx/Dockerfile b/services/nginx/Dockerfile index 643af94..aed3c53 100644 --- a/services/nginx/Dockerfile +++ b/services/nginx/Dockerfile @@ -1,4 +1,4 @@ FROM nginx:1.23-alpine RUN rm /etc/nginx/conf.d/default.conf -COPY default.conf /etc/nginx/conf.d \ No newline at end of file +COPY prod.conf /etc/nginx/conf.d \ No newline at end of file diff --git a/services/nginx/default.conf b/services/nginx/prod.conf similarity index 100% rename from services/nginx/default.conf rename to services/nginx/prod.conf