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"),