diff --git a/src/migrations/env.py b/src/migrations/env.py index dbfd5a8..e6782c3 100644 --- a/src/migrations/env.py +++ b/src/migrations/env.py @@ -14,7 +14,7 @@ config.set_main_option( "sqlalchemy.url", - f"{settings.POSTGRES_ASYNC_PREFIX}{settings.POSTGRES_USER}:{settings.POSTGRES_PASSWORD}@localhost/{settings.POSTGRES_DB}", + f"{settings.POSTGRES_ASYNC_PREFIX}{settings.POSTGRES_USER}:{settings.POSTGRES_PASSWORD}@{settings.POSTGRES_SERVER}/{settings.POSTGRES_DB}", ) # Interpret the config file for Python logging.