Overview and requirements
This page is for the people who install and look after an Adiutor server. It covers what you need before you start, the three ways to run Adiutor, what the server connects to (for your firewall), and where to go next.
What you need
Section titled “What you need”- A host. Docker, or a plain server with Node.js 26.13 or newer and pnpm 12.22.0, or Vercel. Three ways to run it compares them.
- PostgreSQL 18. The database is yours to run and back up: Adiutor holds none of its own. Each server process uses up to 10 connections at a time.
- An
https://address for Adiutor (BETTER_AUTH_URL). In production, Adiutor refuses to start with anhttp://address, except on the computer it runs on (localhost,127.0.0.1,[::1]or a.localhostname). - A mail server (SMTP). Sign-in links, invitations, security notices and the emails about requests all go through it. Without one, every email fails. See Email.
- A place for attached files, or none. A folder on the server, an S3-compatible bucket or a folder on another server over SFTP. Without one, attaching files stays off. See File storage.
- Something that starts the background jobs every 5 minutes. Cron, a systemd timer, a container that loops, or a cron service that calls Adiutor’s address. See Background jobs.
Drawing previews of attached files takes some memory for a moment, so leave the app room above what it uses at rest.
Three ways to run it
Section titled “Three ways to run it”Every feature works the same on all three. The settings, the commands and the way you upgrade differ only in where you type them.
| Way | Best for | What it takes |
|---|---|---|
| Docker | Most servers. The way we recommend. | One image with everything in it, and a Compose file that adds PostgreSQL and the jobs. You provide Docker and a reverse proxy. |
| A plain Node.js server | A server you manage yourself, without containers. | Node.js 26.13 or newer, pnpm 12.22.0, a checkout of a release, a build, and a service manager such as systemd. |
| Vercel | No server to run. | A database elsewhere, files only in S3 or over SFTP and at most 4 MB each, functions that stop after 60 seconds, and an external cron service for the jobs. |
Want to try Adiutor first? The Quick start runs it on your own computer with Docker in a few minutes.
What the server connects to
Section titled “What the server connects to”Adiutor’s server makes these connections. If a firewall controls what the server may reach, allow them:
- Its database, PostgreSQL 18.
- The mail server, for every email.
- The file storage, when you chose an S3 service or an SFTP server.
- GitHub and Google, when you set their sign-in credentials: for signing in, for checking GitHub’s two-step verification, and for the pictures of people’s connected accounts. See Sign-in providers.
- The addresses of webhooks that staff Admins add.
- Its own address (
BETTER_AUTH_URL), when a cron service calls the jobs’ endpoint and a tick that ran out of time continues itself. See The endpoint.
People’s browsers connect only to Adiutor itself, never to the database, the mail server or the storage. Keep the server’s own port private and put a reverse proxy in front: see Reverse proxy.
Webhooks to your own network
Section titled “Webhooks to your own network”Staff Admins can have Adiutor send what happens to requests to addresses they choose (see Webhooks). Adiutor never sends one inside its own network: an address that is, or resolves to, a private, loopback, link-local (where clouds serve their metadata), shared, multicast or reserved address is refused, checked on every connection. In production a webhook’s address must be https://.
For a receiver on your own network, such as an on-premises system, allow its network with WEBHOOK_ALLOWED_NETWORKS: IP addresses or CIDR ranges, separated by commas, for example 10.20.0.0/16.
- Allow as little as you can. Every address in the list can be reached by anyone who can add a webhook.
- Only the server’s environment sets it, never anyone in the app.
- Each range allows its own family only. An IPv6 range never allows an IPv4 address, whether it’s written as IPv4 or in IPv6 (
::ffff:10.0.0.1), so allow an IPv4 network in IPv4.
Where to go next
Section titled “Where to go next”Then, in this order:
- Reverse proxy: HTTPS in front of the app, and the client’s address read correctly.
- First run: create the first staff Admin before anyone else can.
- The integrations: Email, File storage and Sign-in providers.
- Running it: Background jobs, Upgrading, Logs and errors, Secrets and incidents and Commands.
Example
Section titled “Example”The guide’s examples run Adiutor at https://adiutor.dev, with a mail server at smtp.adiutor.dev sending from [email protected], the folder /srv/adiutor (for the Compose file, or the checkout on a plain server), and the first staff Admin, Alex Admin ([email protected]).
Good to know
Section titled “Good to know”- Every environment variable is listed in Environment variables. The pages here explain the ones each step needs.
- Until the first staff Admin is set up, whoever opens
/setupfirst becomes the staff Admin. Set up right after the first start.
Related
Section titled “Related”Adiutor's code is released under the MIT License. The Adiutor name and logo aren’t covered by it; see the notice.
Set in Inter and JetBrains Mono, under the SIL Open Font License (Inter, JetBrains Mono).