Requirements

Server, operating systems, network, domain, and the two install modes.

Read this page before you install Zerodot on a server.

Server

Item Minimum
RAM 2 GB. A build on the server needs 4 GB (or 2 GB and swap).
Disk 8 GB free on /var. Docker images and data use about 6 GB.
CPU type x86_64 or aarch64.
Init systemd. The installer uses systemd for services, Caddy, nginx and Docker.
Access root, or a user that can use sudo.

When RAM is less than 4 GB and the server has no swap, the installer can add 3 GB of swap. It asks first. It does not touch a swap file that exists.

Supported operating systems

Operating system Versions Package manager Firewall
Ubuntu 22.04, newer apt ufw
Debian 12, newer apt ufw
Fedora 40, newer dnf firewalld
RHEL, Rocky, Alma 9, newer dnf firewalld
Arch Linux rolling pacman ufw or firewalld

The installer also accepts a system that is like one of these (ID_LIKE in /etc/os-release). It shows a warning, because nobody tested that system.

For notes about each system, see OS notes.

macOS and Windows

For your own computer or a small self-host, the installer also runs on macOS 13 or newer and on Windows 10 and 11. It uses Docker mode only. On macOS, it needs Docker Desktop or OrbStack. On Windows, it needs Docker Desktop (WSL 2 backend) and git. See Install on macOS or Windows.

Network

  • The server must reach github.com (the code) and ghcr.io (the images).
  • github.com and ghcr.io have no IPv6 address. An IPv6-only server needs NAT64 and DNS64, or an IPv4 address.
  • If the server cannot reach ghcr.io, Docker mode builds the images on the server. The build takes about 10 minutes and needs 4 GB of RAM.
  • Caddy and nginx need ports 80 and 443. A Cloudflare Tunnel needs no open port.

Domain

A server on the internet needs HTTPS, and HTTPS needs a name. Use a domain, or the free sslip.io name (see below).

  1. Get a name, for example zerodot.example.com.

  2. Add a DNS record that points to the server:

    A  zerodot.example.com  <server IPv4 address>
    

With a Cloudflare Tunnel, you do not add this record. Cloudflare makes the record for you.

No domain

Without a domain, the installer has two choices:

Choice Flag Address HTTPS Use for
sslip.io --no-domain https://203-0-113-10.sslip.io Yes A real server
Server IP --ip http://203.0.113.10 No Tests or a private network only

sslip.io is a free DNS service. The name <IP with dashes>.sslip.io points to that IP address. Caddy and certbot can get a certificate for this name. Ports 80 and 443 must be open.

With --ip, the traffic is not encrypted. Passwords and credentials go over the network as plain text. Do not use it on the internet.

If you give the installer an IP address in place of a domain, it asks which of the two to use. A Cloudflare Tunnel needs a real domain.

Docker mode or native mode

The installer has two modes. Read the table, then pick one.

Docker mode (default) Native mode (--native)
What runs Containers: Zerodot, Postgres 17, Valkey 8, Caddy systemd services: web, api, worker, sandbox
Database and queue Own containers. Or Postgres and Valkey on the server. Postgres and Valkey on the server. The installer installs them if they are missing.
Node and pnpm In the image Node 22 and the exact pnpm version of the code. A private copy goes to /opt if necessary.
Build No build. The installer pulls images from GHCR. Builds on the server (about 10 minutes).
RAM About 400 MB more than native mode Less
Best for Most servers. Easy to move. Small servers. Servers that run Postgres already. Container VPS (LXC, OpenVZ).

Without a flag, the installer recommends a mode:

  • Native mode, when the server is a container (LXC or OpenVZ) without Docker.
  • Native mode, when RAM is less than 2 GB.
  • Docker mode, for all other servers.

To see the recommendation and change nothing, run bash install.sh --check. See Install on a server.

Change this page on GitHub