From 4fd7035888ac6d18a2cc5d65f5066ae055e1c4bc Mon Sep 17 00:00:00 2001 From: Salar Nosrati-Ershad Date: Thu, 28 Sep 2023 14:37:03 +0330 Subject: [PATCH] =?UTF-8?q?chore:=20update=20DATABASE=5FURL=20to=20use=20t?= =?UTF-8?q?he=20database=20created=20via=20POSTGRES=5FD=E2=80=A6=20(#4836)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …B in compose ## About the changes I've noticed that all migrations are applied to the `postgres` database along we've the variable POSTGRES_DB=db in docker compose. The reason is the DATABASE_URL variable still refers to `postgres` instead `db`. I updated the URL and now it works with `db`. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4530ff8fdb..21cc282ebc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: - "4242:4242" environment: # This points Unleash to its backing database (defined in the `db` section below) - DATABASE_URL: "postgres://postgres:unleash@db/postgres" + DATABASE_URL: "postgres://postgres:unleash@db/db" # Disable SSL for database connections. @chriswk: why do we do this? DATABASE_SSL: "false" # Changing log levels: