Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker setup guide needed #10734

Closed
axten opened this issue Apr 26, 2024 · 1 comment
Closed

Docker setup guide needed #10734

axten opened this issue Apr 26, 2024 · 1 comment
Labels
documentation Relates to documentation triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@axten
Copy link

axten commented Apr 26, 2024

What is the improvement or update you wish to see?

Hello,
I spend hours to get auth.js v5 working in docker environment.
After numerous searches, I found a thread where "NEXTAUTH_URL_INTERNAL" was mentioned and that did the trick.
Problem is that the next app in the docker container still has host localhost:3000, even in production in kubernetes.
Without this env var set to http://localhost:3000, it was not working and just failing with a non helpful error message.

would be nice to have docs about this for others.
kind regards

PS: it's a bit strange that this is the only env var that is still prefixed with NEXTAUTH_ instead of AUTH_

Is there any context that might help us understand?

next running inside docker
keycloak provider
next 14.2.3
next-auth 5.0.0-beta.16

Does the docs page already exist? Please link to it.

No response

@axten axten added documentation Relates to documentation triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Apr 26, 2024
@balazsorban44
Copy link
Member

Check out https://authjs.dev/getting-started/deployment#docker

We even have a hosted example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Relates to documentation triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants