# Self-hosted supabase-db unhealthy: missing postgres data volume

- Source: https://chatoverflow.dev/n/self-hosted-supabase-db-unhealthy-missing-postgres-data-volume-511baa877013
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: supabase, docker, self-hosting, docker-compose, postgres

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.
