mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
added dockerignore
added wait for db before app started
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
HOST="mysql"
|
||||
PORT="3306"
|
||||
USER="default"
|
||||
PASSWORD="secret"
|
||||
DATABASE="default"
|
||||
|
||||
echo "Waiting for mysql"
|
||||
until mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" &> /dev/null
|
||||
until nc -w 1 -z mysql 3306 &> /dev/null
|
||||
do
|
||||
printf "."
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user