summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-30 12:25:08 +0100
committerGitHub <noreply@github.com>2024-04-30 12:25:08 +0100
commitb9aa9c9ba3ff1b82ecf01d1e2fdffa90ca3e59f5 (patch)
tree4da432a6a5874682caa331a270f053ca70c809b7
parent9796bc5f69c1b0da57a3f11aa133ec3e10c43b66 (diff)
parent3360fda6d84b9f8470b3cba0ca851a16289f9e0e (diff)
Merge pull request #39 from defencedigital/pyswitch
Ports changes
-rw-r--r--Dockerfile4
-rw-r--r--nginx-conf/nginx.conf4
2 files changed, 4 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 426c85e..aca9dfe 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,7 +35,7 @@ USER 1001
RUN python manage.py migrate
# Expose the port on which your Django application will run
-EXPOSE 8080
+EXPOSE 8000
# Run the application using Gunicorn
-CMD ["gunicorn", "ded.wsgi:application", "--bind", "0.0.0.0:8080"]
+CMD ["gunicorn", "ded.wsgi:application", "--bind", "0.0.0.0:8000"]
diff --git a/nginx-conf/nginx.conf b/nginx-conf/nginx.conf
index f345d2e..8fb10b5 100644
--- a/nginx-conf/nginx.conf
+++ b/nginx-conf/nginx.conf
@@ -12,11 +12,11 @@ http {
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
server {
- listen 80;
+ listen 8090;
location / {
proxy_pass http://django-app-service:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
-} \ No newline at end of file
+}