Files
luxmed-bot/docker/run.sh
2024-01-08 16:28:47 +01:00

13 lines
577 B
Bash

#!/bin/sh
echo "********************************************************"
echo "Waiting for the database server to start on host ${DB_HOST:-localhost} and port ${DB_PORT:-5432}"
echo "********************************************************"
while ! `nc -z ${DB_HOST:-localhost} ${DB_PORT:-5432}`; do sleep 3; done
echo "******** Database Server has been started "
echo "********************************************************"
echo "Starting Luxmed Booking Service "
echo "********************************************************"
cd /app && java -Xmx128m -jar server.jar