5 echo "-- Waiting for database..."
6 while ! pg_isready -U ${DB_USER:-pleroma} -d postgres://${DB_HOST:-db}:${DB_PORT:-5432}/${DB_NAME:-pleroma} -t 1; do
10 echo "-- Running migrations..."
11 $HOME/bin/pleroma_ctl migrate
14 exec $HOME/bin/pleroma start