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.
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.
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.
| Hardware | Minimum | ZAP-Hosting recommendation |
|---|---|---|
| CPU | 2 vCPU cores | 4 vCPU cores |
| RAM | 8 GB | 16 GB |
| Disk space | 60 GB | 80 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
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.
Connect to your server as an administrator using Remote Desktop (RDP). Open PowerShell as an administrator and install WSL2 along with Ubuntu 24.04:
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.
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.
Run all the following commands in the Ubuntu console (wsl -d Ubuntu-24.04). First, update the packages and install Git:
sudo apt update && sudo apt upgrade -y
sudo apt install -y git curl
Install the Docker Engine and Docker Compose using Docker's official installation script:
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.
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:
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:
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
Your app is now running with the default credentials. Change them as described in the Configuration section before making 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:
wsl -d Ubuntu-24.04 hostname -I
Then set up port forwarding and a firewall rule. Replace [WSL-IP] with the first address displayed:
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.
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].
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:
[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.
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.
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 withnetshand 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=mirroredunder[wsl2]in the.wslconfigfile. 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.
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:
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:
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.
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.
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 keySERVICE_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 thepostgresroleJWT_SECRET: used by PostgREST and GoTrueSITE_URL: base URL of your siteSMTP_*: credentials for your mail serverPOOLER_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 usernameDASHBOARD_PASSWORD: dashboard password
You can define multiple dashboard users in volumes/api/kong.yml in the project directory:
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:
docker compose down
docker compose up -d
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:
- Supabase.com – Official website
- Supabase.com/docs/guides/self-hosting – Supabase documentation
- learn.microsoft.com/windows/wsl – Microsoft documentation for WSL
- Supabase CLI – Supabase documentation for local development
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! 🙂
