Skip to content

Instantly share code, notes, and snippets.

@pbsull
Created June 5, 2025 12:59
Show Gist options
  • Select an option

  • Save pbsull/853f0d9eb5cf5fbbbf71e56f8a8e6b8c to your computer and use it in GitHub Desktop.

Select an option

Save pbsull/853f0d9eb5cf5fbbbf71e56f8a8e6b8c to your computer and use it in GitHub Desktop.

πŸ§ͺ Running Supabase Locally with Podman on macOS (M1/M2)

This guide walks you through running the full Supabase stack without Docker Desktop, using Podman and the Supabase CLI.

βœ… Why Use Podman?

  • Lightweight alternative to Docker
  • Works great on Apple Silicon
  • No Docker Desktop licensing constraints

πŸ›  One-Time Setup

1. Install Required Tools

brew install podman
brew install supabase/tap/supabase

2. Create and Start the Podman VM

podman machine init
podman machine start

Verify it’s running:

podman machine list

3. Set Up Docker API Compatibility

After starting the Podman machine, it will print a socket path like this:

export DOCKER_HOST='unix:///var/folders/.../podman-machine-default-api.sock'

Copy and paste that line into your shell or add the following to your ~/.zshrc:

function podman_ready() {
  if ! podman machine info &>/dev/null; then
    podman machine start
  fi
  export DOCKER_HOST="unix:///var/folders/rs/76gmr0xs0fv_1s3qs1dnh3sw0000gn/T/podman/podman-machine-default-api.sock"
}
alias supabase-start="podman_ready && supabase start"
alias supabase-stop="supabase stop && podman machine stop"

Then reload:

source ~/.zshrc

πŸš€ Running Supabase

To start:

supabase-start

To stop:

supabase-stop

Studio (UI) β†’ http://localhost:54323 API Gateway β†’ http://localhost:54321


πŸ” Debugging

See container logs:

podman logs supabase_db

Check service health:

supabase status

πŸ–₯ Optional: Use Podman Desktop

Podman Desktop is a free GUI to view containers, logs, and metrics. Works great for inspecting Supabase services visually.


πŸ“Ž Related Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment