Learn how to install the nextAuth Server (NS) and integrate it into your applications.


The full server-side nextAuth solution is distributed as Docker images:

  • nextauth: the central image, which runs the NS.
  • nextauth-mgmt: optional support image, offering a web dashboard for managing the server and a SAML Identity Provider
  • nextauth-portmap: optional support image, for mapping ports exposed by the nextauth and nextauth-mgmt containers to a publicly available web service.

The nextauth-portmap can easily be replaced by any reverse proxy (e.g., your load balancer or TLS gateway). We recommend using your existing infrastructure. Consult the networking documentation for guidance.


The nextauth image has only two external dependencies:

  • a relational database server (preferably MySQL);
  • Redis (optional in single instance setups).

The default setup provides both of these services as a separate Docker container. For high-availability setups it is recommended to use a separate high-availability setup of both the database and Redis.

Table of contents