If you are using the docker-compose at the root, you can use the .env at the root of the project to configure the application, you can skip the rest.
If you are running the frontend independently, set VITE_API_DOMAIN in the .env file to your backend's address.
You will also need to create a symbolic link to the .env in the parent directory.
ln -s ../.env .env