Skip to content

Commit 03907dd

Browse files
committed
Ensure a number of variables exist
1 parent 7d861ff commit 03907dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-entrypoint.sh

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ DB_PORT=${DB_PORT:-3306}
2121
# Ensure these is no local .env file
2222
[ -f ".env" ] && rm .env
2323

24+
# Check a number of essential variables are set
25+
check_vars_exist \
26+
APP_KEY \
27+
APP_URL \
28+
DB_DATABASE \
29+
DB_HOST \
30+
DB_PASSWORD \
31+
DB_PORT \
32+
DB_USERNAME
33+
2434
echoerr "wait-for-db: waiting for ${DB_HOST_NAME}:${DB_PORT}"
2535

2636
timeout 15 bash <<EOT

0 commit comments

Comments
 (0)