Instruction

It is recommended to use Linux, as issues may occur when connecting to the pool on Windows systems.

docker install supabase

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Get the code
git clone --depth 1 https://github.com/supabase/supabase

# Make your new supabase project directory
mkdir supabase-project

# Tree should look like this
# .
# ├── supabase
# └── supabase-project

# Copy the compose files over to your project
cp -rf supabase/docker/* supabase-project

# Copy the fake env vars
cp supabase/docker/.env.example supabase-project/.env

# Switch to your project directory
cd supabase-project

# Pull the latest images
docker compose pull

# Start the services (in detached mode)
docker compose up -d

service running

Restore databse

access to web service

access to web service

connect database by these parameter

host: localhost
port: 5432
database: postgres
username: postgres.your-tenant-id
password: your-super-secret-and-long-postgres-password

restore database

restore database from file

restore database from file

get connection string

browser http://localhost:8000
input username: supabase
password: this_password_is_insecure_and_should_be_updated

replace the connection string in .env file

replace the connection string in .env file

run project and test

run project and test

reference

install supabase with docker