Open marcoriesco opened 3 years ago
@marcoriesco I believe that this issue is similar to https://github.com/ghoshnirmalya/nextjs-strapi-boilerplate/issues/4. Please let me know if the discussion in that issue helps you. I'll keep this open for the time being.
I was able to resolve by examining #4 - for me the issue was that I had a local postgres instance running, and the docker container's port mapping (5432:5432) was masked by this instance as it uses the default port. This causes the frontend to connect to the local postgres instance, where the strapi user & db don't exist.
Either stopping the local postgres or changing the external port in frontend/.env and backend/docker-compose.yml 's db section will resolve (gotcha here was not to change the internal DATABASE_PORT used in the backend service).
I'm getting this error, strapi working normally, but I can't log into the strapi through the frontend.
Does anyone go through this?