diff --git a/core/settings.py b/core/settings.py index 4dd7ce6..71d2d0d 100644 --- a/core/settings.py +++ b/core/settings.py @@ -95,7 +95,7 @@ "NAME": os.environ.get("POSTGRES_DB", "postgres"), "USER": os.environ.get("POSTGRES_USER", "postgres"), "PASSWORD": os.environ.get("POSTGRES_PASSWORD", "postgres"), - "HOST": "0.0.0.0", # Name of the service in docker-compose + "HOST": os.environ.get("POSTGRES_HOST", "0.0.0.0"), # Name of the service in docker-compose "PORT": "5432", } }