Install on macOS or Windows

Run zerodot on a Mac or a Windows PC with Docker. For local use or a small self-host.

Use macOS or Windows to run Zerodot on your own computer, or for a small self-host. For production, use a Linux server. See Install on a server.

On macOS and Windows, Zerodot runs in Docker mode only. Native mode and nginx are for Linux only.

Item macOS Windows
Versions 13 or newer Windows 10 or 11
Script install.sh install.ps1 (PowerShell 5.1 or newer)
Docker Docker Desktop or OrbStack Docker Desktop with the WSL 2 backend
Other programs Homebrew (for Caddy and a new bash) git
Default address http://localhost:PORT http://localhost:PORT
Proxy caddy, cloudflared or none cloudflared or none
Default folder ~/NAME %USERPROFILE%\NAME
Installer log ~/Library/Logs/zerodot-install.log None. The script writes to the terminal.

The scripts do not install Docker on macOS or Windows. Install Docker, start it, then run the script. Give the Docker VM about 4 GB of RAM.

macOS

Prepare the Mac

  1. Install Docker Desktop or OrbStack. Start it.
  2. Install Homebrew. The script uses it for a new bash, and for Caddy.

macOS has bash 3.2 in /bin/bash. The script needs a newer bash. It starts again with the bash from Homebrew. If Homebrew has no bash, run brew install bash.

Install on the Mac

  1. Download the script:

    curl -fsSL https://zerodot.io/install.sh -o install.sh
    
  2. Run the script. Do not use sudo:

    bash install.sh
    

    Docker Desktop and Homebrew belong to your user. With sudo, the script stops and tells you to run it again without sudo.

  3. Answer the questions. The default address is "Only this computer". Then read the plan, and accept it.

  4. Open the address that the script shows, for example http://localhost:3000. Sign up. The first user is the instance admin.

To skip the questions:

bash install.sh --local --yes

With --local, Zerodot is at http://localhost:PORT. The script sets up no proxy, and opens nothing to the network. --local is the default on macOS. It is also available on Linux, in Docker mode.

install.sh has the same options on macOS as on Linux, for example --port, --version, --admin-email, --backup and --auto-update. On macOS, backups and automatic updates use launchd. See Customize the install.

Make a copy of ZERODOT_SECRET_KEY from ~/zerodot/.env. Keep the copy in a safe place. If you lose it, nobody can open the saved credentials.

Use a domain on a Mac

To reach Zerodot from other computers, give a domain and a proxy:

--proxy What the script does
caddy Installs Caddy from Homebrew if it is missing. Starts it with brew services. Caddy gets the certificate.
cloudflared Runs a Cloudflare Tunnel as a container. Opens no ports.
none Changes no proxy. Prints the upstream address.

Example with a Cloudflare Tunnel:

ZERODOT_TUNNEL_TOKEN='<token>' bash install.sh zerodot.example.com --proxy cloudflared

On a Mac at home, Caddy needs ports 80 and 443 from the internet. Forward these ports on your router to the Mac. If you cannot, use --proxy cloudflared. See Cloudflare Tunnel.

Apple Silicon

The image on GHCR is for amd64 only at this time. On a Mac with an M-series chip, the first install builds the image on the Mac. The build takes about 10 minutes.

Keep the Mac running

  • Start Docker Desktop (or OrbStack) at login. The containers start again with Docker.
  • Stop the Mac from sleeping. When the Mac sleeps, the workflows do not run.

Windows

Prepare the PC

  1. Install Docker Desktop with the WSL 2 backend. Start it.

    winget install --id Docker.DockerDesktop -e
    
  2. Install git:

    winget install --id Git.Git -e
    

Run the script as your normal user. You do not need Administrator.

Install on Windows

  1. Open PowerShell. Download the script:

    irm https://zerodot.io/install.ps1 -OutFile install.ps1
    
  2. Run the script. Do not use irm | iex: with it, you cannot give -Domain or -Proxy.

    powershell -ExecutionPolicy Bypass -File .\install.ps1
    
  3. Read the plan, and accept it.

  4. Open the address that the script shows, for example http://localhost:3000. Sign up. The first user is the instance admin.

The default is "this computer only": http://localhost:PORT.

Postgres 17 and Valkey 8 always run as containers on Windows. The script has no option for a database on the computer.

Make a copy of ZERODOT_SECRET_KEY from %USERPROFILE%\zerodot\.env. Keep the copy in a safe place.

Check the computer first

powershell -ExecutionPolicy Bypass -File .\install.ps1 -Check

It changes nothing. It checks PowerShell, git, Docker and Compose (2.24 or newer), the RAM of the Docker VM, access to github.com, and free disk space. Each line starts with + (good), ! (warning) or x (problem).

Use a domain on Windows

$env:ZERODOT_TUNNEL_TOKEN = '<token>'
powershell -ExecutionPolicy Bypass -File .\install.ps1 -Domain zerodot.example.com -Proxy cloudflared

With -Domain and no -Proxy, the script asks: Cloudflare Tunnel or none. With -Proxy none, the script prints the upstream address for your own proxy. A Cloudflare Tunnel needs a domain.

Options of install.ps1

Option What it does
-Domain NAME Public address, for example zerodot.example.com. Default: localhost only.
-Proxy cloudflared A Cloudflare Tunnel serves HTTPS. Needs -Domain.
-Proxy none The script changes no proxy. It prints the upstream address.
-Name NAME Name of the instance. Default: zerodot.
-Dir PATH Folder for the code. Default: %USERPROFILE%\NAME.
-Update Update an install that exists. Stops if the folder has no install.
-Check Look at the computer and show what would happen. Changes nothing.
-Yes Ask nothing. Use the default answers.
-Port N The port of the app on this computer. Default: the first free port from 3000.
-Bind ADDR The address that the port listens on. Default 127.0.0.1. 0.0.0.0: all networks (plain HTTP).
-Version V Install this release, for example 0.2.25. Updates stay on it. latest: follow the newest release.
-Image REPO The Docker image without the tag, for a mirror.
-AdminEmail LIST The instance admins, comma separated. They can sign up when signup is off.
-DisableSignup No public signup. Only the admin emails and invited people can sign up. A new install needs -AdminEmail with it.
-EnableSignup Public signup on again.
-TrustedOrigins LIST More origins that can sign in, comma separated.
-Set KEY=VALUE Write one setting to .env. For more settings, use -EnvFile.
-EnvFile FILE Write each KEY=VALUE line of the file to .env.
-Uninstall Stop and remove the containers. The folder and the data stay.
-Purge With -Uninstall: also remove the data volumes and the folder. You cannot undo this. A copy of .env stays in your home folder.

These options work as the same options of install.sh. See Customize the install. On an update, the options that you do not give again keep their value.

Example:

powershell -ExecutionPolicy Bypass -File .\install.ps1 -Port 8080 -AdminEmail me@example.com -DisableSignup
Variable What it does
ZERODOT_REPO Git address of the code.
ZERODOT_BRANCH Branch to install.
ZERODOT_DIR Same as -Dir.
ZERODOT_PORT Same as -Port.
ZERODOT_TUNNEL_TOKEN The token of a Cloudflare Tunnel. Without it, the script asks.

Git Bash, MSYS2, Cygwin and WSL

If you run install.sh from Git Bash, MSYS2 or Cygwin, it starts install.ps1 for you. It gives these options to install.ps1: the domain, --check, --update, --yes, --name, --dir, --proxy, --port, --bind, --version, --image, --admin-email, --disable-signup, --enable-signup, --trusted-origins, --set, --env-file, --uninstall and --purge. Other options stop the script.

WSL is Linux. In WSL, install.sh works as on a Linux server.

Keep the PC running

Start Docker Desktop at login. The containers start again with Docker. Stop the computer from sleeping.

Update

It keeps .env, the secrets and the database.

macOS (install.sh installs the zerodot command; see zerodot CLI):

zerodot update

Or run the script again:

bash ~/zerodot/scripts/install.sh --update

Windows (uses install.ps1 and docker compose):

powershell -ExecutionPolicy Bypass -File $env:USERPROFILE\zerodot\scripts\install.ps1 -Update

After the install

Task macOS Windows
Logs cd ~/zerodot && docker compose logs -f cd $env:USERPROFILE\zerodot; docker compose logs -f
Restart cd ~/zerodot && docker compose restart cd $env:USERPROFILE\zerodot; docker compose restart
Back up See Back up and move See Back up and move

On macOS, install.sh also installs the zerodot command (zerodot status, zerodot logs, zerodot restart, zerodot doctor). See zerodot CLI. On Windows, use install.ps1 and docker compose.

Change this page on GitHub