Getting 500 error for storefront

I am new to shopware. I have installed a website working in shopware in my local using docker. I am getting 500 internal server error for shopfront while the admin is working properly. I have tried giving 660 permission for files in jwt folder. I have also tried adding domain( in sales channel.
when I run my docker the ip that is loaded is „“

  • I have saved my file in /var/www/html
  • Using Docker in windows Docker Desktop 4.1.1
  • Using the WSL 2 backend (Ubuntu-20.04)

Thanks in advance,

I have fixed this issue . In .env file the mysql user was not correct because of which i got this 500 error .

Hey, am also getting same error, even tried the above method but it doesn’t works. Any fix?