index/docker/entrypoint.sh
aleidk 2398f775e8
Some checks failed
Publish image / create-docker-images (push) Failing after 13s
Publish image / deploy (push) Has been skipped
Publish image / rebase (push) Failing after 11s
chore: add build workflow
2025-02-07 19:46:16 -03:00

11 lines
213 B
Bash

#!/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 "$@"