20 lines
305 B
Bash
20 lines
305 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
wait() {
|
|
host="$1"
|
|
port="$2"
|
|
name="$3"
|
|
|
|
echo "Waiting for $name ($host:$port)..."
|
|
while ! nc -z "$host" "$port"; do
|
|
sleep 1
|
|
done
|
|
echo "$name is up"
|
|
}
|
|
wait taiga-front 80 "taiga-front"
|
|
wait taiga-back 8000 "taiga-back"
|
|
|
|
echo "Starting nginx"
|
|
exec nginx -g "daemon off;"
|