I have deployed strapi using docker in a domain (say firstname.lastname@example.org). I’ve not added the environment variables HOST & PORT to it.
Everything else seems to work fine, but when I use google to sign in users to strapi, the developer info for google sign contains the redirection link as localhost:1337(http).
I wanted it to redirect to the domain mentioned above. So on adding the HOST as “email@example.com” and PORT as 7777 (the port number used for deploying it, also mentioned in the docker-compose file), the strapi fails to start when I run the docker-compose.
This is the error
“error Error: listen EADDRNOTAVAIL: address not available [host-ip]:7777”.
Having the default value of “0.0.0.0” for the HOST works, but doesn’t redirect to the domain mentioned, when using google sign in.
Any help would be appreciated. Thanks.