diff --git a/BH/settings.py b/BH/settings.py index 23670d2..a876ea9 100644 --- a/BH/settings.py +++ b/BH/settings.py @@ -31,7 +31,7 @@ SECRET_KEY = os.getenv('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False -ALLOWED_HOSTS = ['localhost', '127.0.0.1'] +ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'beyond-heroes.com', 'www.beyond-heroes.com'] # Application definition diff --git a/docker-compose.yml b/docker-compose.yml index 6ebb4ed..0784b53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,8 +7,9 @@ services: - .:/app ports: - "3030:3030" + network_mode: "host" command: > sh -c "python manage.py makemigrations blog --noinput && python manage.py migrate --noinput && python manage.py collectstatic --noinput && - gunicorn BH.wsgi:application --bind 0.0.0.0:3030 --workers ${GUNICORN_WORKERS:-3}" \ No newline at end of file + gunicorn BH.wsgi:application --bind 0.0.0.0:3030 --workers ${GUNICORN_WORKERS:-3}"