Use db name parameter for jwt sql
This commit is contained in:
parent
bc36fcb722
commit
bd81cc1cc4
@ -559,9 +559,10 @@ services:
|
||||
content: |
|
||||
\set jwt_secret `echo "$JWT_SECRET"`
|
||||
\set jwt_exp `echo "$JWT_EXP"`
|
||||
\set db_name `echo "${POSTGRES_DB:-postgres}"`
|
||||
|
||||
ALTER DATABASE postgres SET "app.settings.jwt_secret" TO :'jwt_secret';
|
||||
ALTER DATABASE postgres SET "app.settings.jwt_exp" TO :'jwt_exp';
|
||||
ALTER DATABASE :'db_name' SET "app.settings.jwt_secret" TO :'jwt_secret';
|
||||
ALTER DATABASE :'db_name' SET "app.settings.jwt_exp" TO :'jwt_exp';
|
||||
|
||||
- type: bind
|
||||
source: ./volumes/db/logs.sql
|
||||
|
Loading…
Reference in New Issue
Block a user