hostname Error when running my server, client insi...
# support-questions-legacy
c
hostname Error when running my server, client inside docker
I'm running mysql, supertokens, server, client using docker-compose Getting this Error:
server_1 | /node_modules/supertokens-node/lib/build/recipe/session/utils.js:135 server_1 | throw new Error("Please make sure that the apiDomain and websiteDomain have correct values"); server_1 | ^
values passed for apiDomain are:
r
Can I see your supertokens.init code?
c
r
The value of apiDomain should be what it is from the frontend’s code point of view
So if your frontend is querying http://localhost:8000 for example, it should be set to that
c
ok and websiteDomain? currently It's websiteDomain: http://client:3000
r
Yes. That too needs to be what it will be from the browser’s point of view
So if you load on the browser http://localhost:3000 for website app, then it needs to be set to that
c
ok, I'll try with these