How do I restart my Supabase server without losing data? (self-hosted) #9597
Unanswered
globemediaofficial
asked this question in
Questions
Replies: 1 comment 2 replies
|
Also trying to figure this one out, not seeing a good answer yet |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am self-hosting Supabase on my Debian computer. For some reason, today the server stopped working in my app. I went to the host computer and opened the Supabase studio to see that nothing (auth, db, realtime, etc) would load in the project. It didn't even say that it was loading, it explicitly said that something was wrong and said to talk to support. I assumed that the drive went to sleep and the containers stop so I ran
docker-compose down, then randocker-compose up -d. Everything started working again, but the data was gone, including all database tables and RLS policies. It was like a fresh project. I think my mistake was the commands I used because they created new containers instead of just restarting what already existed. Luckily, I'm just testing, so there was very little data and it won't be missed. How can I restart the containers without losing data in the future?All reactions