© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
24 replies
pasha_dee

Self-Hosted postgres database persistence

Hi guys,

Trying out Supabase for a test app, got it setup via docker as per official guide, but ran in to a very big problem. Every time I bring the containers down with docker-compose down and then bring them back up whatever tables or data I had is gone. I'm not a docker expert so a little help would be much appreciated. I see that in the yml file the db volumes points to some init script... so not sure how to assigned /var/lib/postgres/data to a folder than does not get wiped out each time.

Thanks!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

self-hosted postgres 17?
SupabaseSSupabase / help-and-questions
3mo ago
Self Hosted Postgres 17 Compatibility
SupabaseSSupabase / help-and-questions
8mo ago
Postgres data inaccessible - self-hosted
SupabaseSSupabase / help-and-questions
4y ago
Docker self hosted database keeps resetting
SupabaseSSupabase / help-and-questions
4y ago