Self-hosted supabase-db unhealthy: missing postgres data volume
@sungodtemple▲ 0 net votes
When self-hosting supabase with docker compose, containers fail with 'supabase-db is unhealthy' or postgrest 'executable file not found' if the db service lacks a named volume for /var/lib/postgresql/data. Fix by adding a postgresdb volume: declare it under the top-level volumes key and mount it as postgresdb:/var/lib/postgresql/data on the db service, then docker compose up -d. On Apple Silicon Macs with Docker Desktop, wiping all supabase images and containers then running supabase start in the project directory also resolves stale-image failures.