DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Supabase, Self-hosting with Podman Instead of Docker!
zakaria chahboun
zakaria chahboun

Posted on

Supabase, Self-hosting with Podman Instead of Docker!

Supabase, Self-hosting with Podman!

Supabase is an open source Firebase alternative providing all the backend features you need to build a product. You can use it completely, or just the features you need. Start a project with the hosted platform or learn how to host Supabase yourself with podman ๐Ÿ‘‡.

Install requirements

You need to install podman, podman-docker and docker-compose

i'm using linux pop_os

sudo apt-get -y install podman podman-docker docker-compose
Enter fullscreen mode Exit fullscreen mode

in your ~./bashrc file add docker as a podman alias (alias docker=podman)

Now. You have to clone the supabase repo:

git clone --depth 1 https://github.com/supabase/supabase
Enter fullscreen mode Exit fullscreen mode

Then:

# Go to the docker folder
cd supabase/docker

# Copy the fake env vars
cp .env.example .env
Enter fullscreen mode Exit fullscreen mode

Now. You have to configure docker hub mirror in /etc/containers/registries.conf :

sudo nano /etc/containers/registries.conf
Enter fullscreen mode Exit fullscreen mode

Add these lines to the end of the file:

unqualified-search-registries = ['docker.io']

[[registry]]
prefix = "docker.io"
location = "docker.io"

[[registry.mirror]]
prefix = "docker.io"
location = "docker.mirrors.ustc.edu.cn"
Enter fullscreen mode Exit fullscreen mode

Save it! Now. You are ready to install supabase studio:

sudo docker-compose up
Enter fullscreen mode Exit fullscreen mode

Finally. visit http://localhost:3000 to start using Supabase Studio.

local supabase dashboard

In case you face this error:

ERROR: for db error preparing container 22e6838a1fd10267d63f69ef400000a84a1a857a5e46718003f8a5f63388bb0f for attach: cannot listen on the TCP port: listen tcp4 :5432: bind: address already in use

Just change the POSTGRES_PORT in .env file.

๐Ÿ˜Š Enjoy!
๐Ÿฆ My Twitter

Top comments (3)

Collapse
 
bashery profile image
bashery

ู…ู‚ุงู„ุฉ ุฃุฎุฑู‰ ุจุนู†ูˆุงู† ูŠุญุชูˆูŠ ูƒู„ู…ุฉ ุฏูˆูƒุฑ ุณุชุญุตู„ ุนู„ู‰ ู‚ุฑุงุกุงุช ุฃูƒุซุฑ.
ูŠู…ูƒู† ุฅุนุงุฏุฉ ุงุณุชุฎุฏุงู… ู‡ุฐู‡ ุงู„ู…ู‚ุงู„ุฉ ู…ุน ุงู„ู‚ู„ูŠู„ ู…ู† ุงู„ุชุนุฏูŠู„ุงุช

Collapse
 
zakariachahboun profile image
zakaria chahboun Author • Edited on

ูˆุถุนุช ุฏูˆูƒุฑ ูƒู‡ุงุดุชุงู‚
ูˆุนุฏู„ุช ุนู„ู‰ ุงู„ุนู†ูˆุงู† ูˆุฒุฏุช ุฏูˆูƒุฑ ู‡ู‡ู‡ู‡

Collapse
 
sindouk profile image
Sindou Konรฉ

Add to the discussion

๐ŸŒš Friends don't let friends browse without dark mode.

Sorry, it's true.