Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

How to Set Up Supabase on Windows Server and Windows 11

Install Supabase on Windows Server or Windows 11: set up WSL2 with Ubuntu and Docker, or get started locally with Docker Desktop and the Supabase CLI.

29 November 20267 min read88 Views0 helpful

Introduction

Supabase is an open-source Postgres development platform that provides a full Postgres database, along with authentication, instant APIs, realtime, and storage—an open-source alternative to Firebase.

Supabase consists of several Linux containers. These containers don't run directly on Windows; instead, they run in a Linux system that you set up using the Windows Subsystem for Linux (WSL2). This applies to Windows Server as well as Windows 11. In this guide, we'll show you how to install WSL2 with Ubuntu on your Windows VPS, set up Docker inside it, and start Supabase. For details on what's different when using Windows 11 on your own PC, see the section Installing Supabase on Windows 11.

Tip: It's easier with a Linux VPS

On a Linux VPS (Debian or Ubuntu), you can install Supabase in just a few clicks using One-Click Apps in the VPS web interface, or install it manually by following our guide Set Up Supabase on a Linux Server. This is the approach we recommend: On Windows, WSL2 runs in its own virtual machine inside your VPS, which uses memory and CPU resources and requires more maintenance. One-Click Apps aren't available on Windows VPSs.

Requirements

Before installing Supabase, make sure your hosting environment meets the following requirements. Windows and the WSL2 environment also need their own resources in addition to those required by Supabase.

HardwareMinimumZAP-Hosting recommendation
CPU2 vCPU cores4 vCPU cores
RAM8 GB16 GB
Disk space60 GB80 GB

Operating system: Windows Server 2022 or Windows Server 2025 (see below for Windows 11)

Dependencies: WSL2 with Ubuntu 24.04, plus Git and Docker (Engine and Compose) inside it

Warning: No Docker Desktop or Windows containers

Docker Desktop isn't supported on Windows Server by Docker. The Docker Engine from our guide Set Up Docker on a Windows Server only runs Windows containers, so it isn't suitable for Supabase. Install Docker inside Ubuntu in WSL2 as described below.

Preparation

Install WSL2 and Ubuntu

Connect to your server as an administrator using Remote Desktop (RDP). Open PowerShell as an administrator and install WSL2 along with Ubuntu 24.04:

Code
wsl --install -d Ubuntu-24.04

Then restart the server. After it restarts, open PowerShell again and start Ubuntu once with wsl -d Ubuntu-24.04. The first time you start it, create a Linux username and password.

Info

The message Nested virtualization is not supported on this machine may appear during startup. It only affects virtual machines running inside WSL and doesn't affect Supabase.

Use wsl -l -v to check that Ubuntu is running and using version 2.

Update the system

Run all the following commands in the Ubuntu console (wsl -d Ubuntu-24.04). First, update the packages and install Git:

Code
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl

Install Docker

Install the Docker Engine and Docker Compose using Docker's official installation script:

Code
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER

Exit the Ubuntu console with exit, run wsl --shutdown in PowerShell, and then reopen Ubuntu so the group membership takes effect. Check the installation with docker version and docker compose version.

For a detailed guide to using Docker on Linux, see our Docker guide.

Installation

Once all the requirements are met, you can install Supabase. In the Ubuntu console, download the Supabase repository, create a project directory, and copy the Docker files and example environment file into it:

Code
cd ~
git clone --depth 1 https://github.com/supabase/supabase
mkdir supabase-project
cp -rf supabase/docker/* supabase-project
cp supabase/docker/.env.example supabase-project/.env

Go to the project directory, download the latest container images, and start the stack in the background:

Code
cd supabase-project
docker compose pull
docker compose up -d

You can now access Supabase Studio in a browser on the server itself at http://localhost:8000. You'll be asked for a username and password. The default credentials are:

  • Username: supabase
  • Password: this_password_is_insecure_and_should_be_updated
Warning: Default credentials

Your app is now running with the default credentials. Change them as described in the Configuration section before making Supabase accessible externally.

Make Supabase accessible externally

WSL2 has its own internal network. To access Supabase Studio and the API using your server's IP address, forward the port from Windows to WSL. First, find Ubuntu's internal IP address in PowerShell:

Code
wsl -d Ubuntu-24.04 hostname -I

Then set up port forwarding and a firewall rule. Replace [WSL-IP] with the first address displayed:

Code
netsh interface portproxy add v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=[WSL-IP]
New-NetFirewallRule -DisplayName "Supabase" -Direction Inbound -Protocol TCP -LocalPort 8000 -Action Allow

You can now access Supabase Studio at http://[your-ip]:8000.

Info

WSL's internal IP address may change after a restart. If it does, check the address again and update port forwarding with netsh interface portproxy set v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=[WSL-IP].

Keep Supabase running continuously

WSL shuts down Ubuntu as soon as no window or command is accessing it. To keep Supabase running, create the file C:\Users\<Benutzername>\.wslconfig in Windows with the following contents:

Code
[general]
instanceIdleTimeout=-1

[wsl2]
vmIdleTimeout=-1

Then run wsl --shutdown in PowerShell and restart Ubuntu. The Supabase containers will start automatically as soon as Docker is running in Ubuntu.

To make sure Supabase starts again after a server restart, create a task in Task Scheduler that runs at system startup under your administrator account (select the Run whether user is logged on or not option). Set the action to wsl.exe with the arguments -d Ubuntu-24.04 -u root -- systemctl start docker.

Install Supabase on Windows 11

ZAP-Hosting Windows VPSs run Windows Server 2022 or 2025. If you want to try Supabase or develop with it on your own Windows 11 PC, you have two options.

Option 1: Follow the same steps with WSL2

The steps in this guide also work on Windows 11: run wsl --install -d Ubuntu-24.04, install Docker in Ubuntu, and start Supabase with docker compose up -d. Make sure virtualization is enabled in your PC's BIOS or UEFI. A few things are different:

  • Access: On your PC, open Supabase Studio directly at http://localhost:8000. You only need port forwarding with netsh and the firewall rule if other devices on your network need to access Supabase.
  • Networking: Starting with Windows 11 22H2, you can add the line networkingMode=mirrored under [wsl2] in the .wslconfig file. WSL will then use Windows network addresses, so you won't need to forward ports to a changing internal IP address. Depending on your settings, you may also need to allow access through the Hyper-V firewall for devices on your network. See Microsoft's WSL documentation for details.
  • Continuous operation: You only need the settings in the Keep Supabase running continuously section if Supabase should keep running when no window is open.

Option 2: Docker Desktop and the Supabase CLI

For local development, Supabase recommends using the Supabase CLI with Docker Desktop. Docker Desktop runs on Windows 11 version 23H2 and later with the WSL2 backend, but it doesn't run on Windows Server. Docker Desktop requires a paid subscription for companies with more than 250 employees or more than 10 million US dollars in annual revenue.

Install Docker Desktop, then install the Supabase CLI, for example, using the Scoop package manager:

Code
scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
scoop install supabase

Create the configuration in your project folder and start the local environment:

Code
supabase init
supabase start

After startup, the CLI displays all the URLs. By default, you can access Supabase Studio at http://localhost:54323 and the API at http://localhost:54321. Run supabase stop to stop the environment.

Info: Use a server for continuous operation

The Supabase CLI is intended for development on your PC. If your app needs to be accessible around the clock, run Supabase on a VPS—most easily on a Linux VPS using One-Click Apps.

Configuration

You should never go live with default or example values. Replace all placeholders with strong, unique secrets, check that the configuration meets your security requirements, and restart all services for the changes to take effect.

Generate secure API keys before making a service public. Start with a 40-character JWT secret. You can use the provided value or create your own. Store the secret locally in a secure place. Don't share it or commit it to version control. Use the secret to generate a JWT, then use the form in the Supabase documentation to derive the anon and service API keys: https://supabase.com/docs/guides/self-hosting/docker#generate-api-keys

Submit the form twice to generate both keys. Update the .env file in your ~/supabase-project directory with:

  • ANON_KEY: anon key
  • SERVICE_ROLE_KEY: service key

Set the required secrets in the same .env file. These values are required for the installation to work:

  • POSTGRES_PASSWORD: password for the postgres role
  • JWT_SECRET: used by PostgREST and GoTrue
  • SITE_URL: base URL of your site
  • SMTP_*: credentials for your mail server
  • POOLER_TENANT_ID: tenant ID used by the Supavisor Pooler

Protect the dashboard with new credentials before using it in production. To do this, also edit the .env file:

  • DASHBOARD_USERNAME: dashboard username
  • DASHBOARD_PASSWORD: dashboard password

You can define multiple dashboard users in volumes/api/kong.yml in the project directory:

Code
basicauth_credentials:
  - consumer: DASHBOARD
    username: user_one
    password: password_one
  - consumer: DASHBOARD
    username: user_two
    password: password_two

To use all dashboard features outside of localhost, set SUPABASE_PUBLIC_URL in the .env file to the URL or IP address you want to use to access the dashboard.

Apply your configuration changes by restarting the stack in the project directory:

Code
docker compose down
docker compose up -d

Conclusion and additional resources

Congratulations! You've successfully installed and configured Supabase on Windows with WSL2, either on your Windows Server or on Windows 11. We also recommend checking out these resources for help configuring your server:

Have a specific question that isn't answered here? Our team is available every day to answer your questions and provide support—just get in touch! 🙂

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

Supabase runs as Linux containers. On Windows Server 2022 or 2025, first install WSL2 with Ubuntu, set up Docker Engine and Docker Compose inside it, and then start Supabase with docker compose. One-Click Apps are only available on Linux VPSs.
Yes. On Windows 11, you can either follow the server steps and install WSL2 with Ubuntu, Docker Engine, and Supabase, or use Docker Desktop with the Supabase CLI for local development and start the environment with supabase start. ZAP-Hosting Windows VPSs run Windows Server 2022 or 2025.
No, there is no traditional Windows installer for Supabase. It runs as a collection of Docker containers, which means that on Windows it runs in WSL2 or with Docker Desktop. You can install the Supabase CLI on Windows using the Scoop package manager.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.