generated from alecodes/base-template
chore: add build workflow
This commit is contained in:
parent
6288969c4d
commit
82b3d4f20b
4 changed files with 137 additions and 1 deletions
11
docker/entrypoint.sh
Normal file
11
docker/entrypoint.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [[ -e $DB_PASSWORD_FILE ]]; then
|
||||
DB_PASSWORD=$(cat $DB_PASSWORD_FILE)
|
||||
fi
|
||||
|
||||
export DATABASE_URL="postgres://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_DB}?sslmode=disable"
|
||||
|
||||
echo $DATABASE_URL
|
||||
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue