next-auth Docker & Self-Hosted Deployment

GitHub

Authentication for the Web.

28,306 stars TypeScript TypeScript 1 file ยท ~16,374 tokens #auth#authentication#csrf#jwt#nextauth#nextjs#nodejs#nuxt
RAW Compose
1. Pull Image (DOCKERHUB) docker pull nextauthjs/next-auth
2. Docker Run (1-Click Launch) docker run -d --name next-auth -p 3000:3000 --restart always nextauthjs/next-auth:latest
3. Podman Run podman run -d --name next-auth -p 3000:3000 --restart always nextauthjs/next-auth:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/nextauthjs/next-auth:latest
5. ORAS Pull (OCI Artifact) oras pull nextauthjs/next-auth:latest
6. Compose Deployment docker compose up -d
apps/examples/nextjs/docker-compose.yml
Download .yml
services:
  authjs-docker-test:
    build: .
    environment:
      - TEST_KEYCLOAK_USERNAME
      - TEST_KEYCLOAK_PASSWORD
      - AUTH_KEYCLOAK_ID
      - AUTH_KEYCLOAK_SECRET
      - AUTH_KEYCLOAK_ISSUER
      - AUTH_SECRET="MohY0/2zSQw/psWEnejC2ka3Al0oifvY4YjOkUaFfnI="
      - AUTH_URL=http://localhost:3000/auth
    ports:
      - "3000:3000"