1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: update DATABASE_URL to use the database created via POSTGRES_D… (#4836)

…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`.
This commit is contained in:
Salar Nosrati-Ershad 2023-09-28 14:37:03 +03:30 committed by GitHub
parent 93da4a1217
commit 4fd7035888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ services:
- "4242:4242" - "4242:4242"
environment: environment:
# This points Unleash to its backing database (defined in the `db` section below) # 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? # Disable SSL for database connections. @chriswk: why do we do this?
DATABASE_SSL: "false" DATABASE_SSL: "false"
# Changing log levels: # Changing log levels: