From 2725fbb80256f5fdccc54d5b8212e29d5e794895 Mon Sep 17 00:00:00 2001 From: Aaron Riedener Date: Sat, 6 Apr 2024 16:12:05 +0200 Subject: [PATCH] Update default database name and allowed hosts --- docker-compose.yml | 1 + koalixcrmprod/settings/production_docker_postgres_settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 36ed56d..41e4ca9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: - SQL_HOST=db - SQL_PORT=5432 - SECRET_KEY=SECRETKEYOFYOURCHOICE + - DJANGO_ALLOWED_HOSTS=localhost 0.0.0.0 depends_on: - db volumes: diff --git a/koalixcrmprod/settings/production_docker_postgres_settings.py b/koalixcrmprod/settings/production_docker_postgres_settings.py index f95934e..7bda98d 100644 --- a/koalixcrmprod/settings/production_docker_postgres_settings.py +++ b/koalixcrmprod/settings/production_docker_postgres_settings.py @@ -15,7 +15,7 @@ DATABASES = { "default": { "ENGINE": os.environ.get("SQL_ENGINE", "django.db.backends.postgresql"), - "NAME": os.environ.get("SQL_DATABASE", BASE_DIR / "postgres"), + "NAME": os.environ.get("SQL_DATABASE", "postgres"), "USER": os.environ.get("SQL_USER", "postgres"), "PASSWORD": os.environ.get("SQL_PASSWORD", "password"), "HOST": os.environ.get("SQL_HOST", "localhost"),