Skip to content

Commit 23ebb55

Browse files
committed
Use other env values to fill the dbmate DATABASE_URL
1 parent 04838e2 commit 23ebb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/database/.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DUNE_API_KEY=
1616

1717
##### DBMATE configuration for migrations
1818
# Configure the database connection
19-
DATABASE_URL=postgres://username:[email protected]:5432/database_name?sslmode=disable
19+
DATABASE_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:$DOCKER_HOST_POSTGRES_PORT/$POSTGRES_DB?sslmode=disable
2020

2121
# Keep this for updating the schema dump after adding a new migration
2222
DBMATE_SCHEMA_FILE=./sourcify-database.sql

0 commit comments

Comments
 (0)