From 9b7dd61990748753acacc6005fddade7bb9009d4 Mon Sep 17 00:00:00 2001 From: Gunnar Scherf Date: Sun, 7 Apr 2024 16:21:47 +0200 Subject: [PATCH] use host.docker.internal for database --- Docker/gunicorn.conf.py | 4 ---- Dockerfile | 2 +- apps/client/__init__.py | 2 +- set-version.sh | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Docker/gunicorn.conf.py b/Docker/gunicorn.conf.py index bc61fe5..a87b00f 100644 --- a/Docker/gunicorn.conf.py +++ b/Docker/gunicorn.conf.py @@ -1,5 +1 @@ -import multiprocessing secure_scheme_headers = {'X-FORWARDED-SSL': 'on', 'X-FORWARDED-PROTO': 'https'} -workers = multiprocessing.cpu_count() * 2 + 1 -bind = "0.0.0.0:8000" -forwarded_allow_ips = '*' diff --git a/Dockerfile b/Dockerfile index c87f129..b4d451f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,5 +47,5 @@ ARG SECRET_KEY=dummy RUN ./manage.py collectstatic ENTRYPOINT ["./docker-entrypoint.sh"] # Start gunicorn -CMD ["gunicorn", "client.wsgi:application", "--bind 0.0.0.0:8000", "-w", "2"] +CMD ["gunicorn", "client.wsgi:application", "-b", "0.0.0.0:8000", "--forwarded-allow-ips", "*"] EXPOSE 8000 diff --git a/apps/client/__init__.py b/apps/client/__init__.py index da04cc3..bc6379c 100644 --- a/apps/client/__init__.py +++ b/apps/client/__init__.py @@ -1 +1 @@ -__version__ = '2.1.6' +__version__ = '2.1.7' diff --git a/set-version.sh b/set-version.sh index 140d2ec..cbfed68 100755 --- a/set-version.sh +++ b/set-version.sh @@ -1,5 +1,5 @@ #!/bin/bash -VERSION=2.1.6 +VERSION=2.1.7 sed -i "s/__version__ =.*/__version__ = '${VERSION}'/" apps/client/__init__.py