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!
Was this page helpful?