Skip to content

Commit

Permalink
use host.docker.internal for database
Browse files Browse the repository at this point in the history
  • Loading branch information
g10f committed Apr 7, 2024
1 parent 48de492 commit 9b7dd61
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Docker/gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -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 = '*'
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion apps/client/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.1.6'
__version__ = '2.1.7'
2 changes: 1 addition & 1 deletion set-version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
VERSION=2.1.6
VERSION=2.1.7

sed -i "s/__version__ =.*/__version__ = '${VERSION}'/" apps/client/__init__.py

0 comments on commit 9b7dd61

Please sign in to comment.