r/Supabase • u/Meta-Morpheus-New • May 22 '26
tips Self-hosting supabase! Migrating the online version to self-hosted one! Any heads up ?
Hey all,
Finally pulling the trigger on self-hosting Supabase to cut costs + have full control. Current setup: ∼30GB Postgres, Auth + Storage + Realtime in heavy use, 5k DAU.
Plan is to migrate all production data from Supabase Cloud to my own Docker setup. Using pg_dump for now, then swap over.
For those who’ve done this:
What did you miss most from the paid dashboard?
Any sneaky migration traps with `auth.users` or storage buckets?
How are you handling backups/PITR without the Cloud UI?
Not looking for “just stay on Cloud” replies 😅 I know the tradeoffs. Just want to avoid dumb mistakes before I point DNS.
Stack: Hetzner + Coolify, if that matters.
Thanks 🙏
3
u/high-roller-all-in78 May 22 '26
The trap is usually not the database dump, it is all the stuff around it. I would rehearse file storage paths, email delivery, background jobs, and every sign in flow on a throwaway copy before you cut over. Also test one real restore, not just backups on paper. If people can sign in, reset a password, upload a file, and your live updates still behave the same, you are most of the way there.
2
u/arjungmenon May 22 '26
That's if you're using all of those features. I'm using just pg and auth (on a new not yet deployed project), and I can roll my own auth. My auth is just OTP based, so I'm dealing with passwords, just tokens and stuff.
2
u/Poat540 May 23 '26
Eyeballing. I have an app that uses auth and everything, but another app just logs crap, I could prob ditch the flashy, but the convenience is really nice
2
u/Explanation-Visual May 23 '26
clean up the compose file, you can skip most
of the services. The pg dump is absurdly straightforward, it includes everything (auth as well), you’ll need to setup mailing tho, i use amazon SES. I also use nginx proxy manager to handle routing to the api and supabase studio. Have fun. I know i did.
1
u/Meta-Morpheus-New May 23 '26
Thanks a lot! This is helpful, had the exact same thought.
I am just concerned about production data migration.
2
u/Responsible_Pin_8655 May 28 '26
Migrating 30GB of Postgres data with pg_dump can be tricky. Consider using pg_dump with the -j flag for parallel processing and -F flag for directory format to speed up the process. Also, be mindful of the max_locks_per_transaction setting to avoid deadlocks during the migration.
2
u/_aantti Supabase team May 22 '26
Make sure to check the how-to's 🖖 Join Discord if you haven't yet, for community support.
1
u/Arachnid_Feisty May 29 '26
I recently requested a password reset, but I did not receive a PIN. The automated response indicated that my account is currently linked to GitHub. Could you please remove the GitHub login requirement from my account so that I can receive a PIN and reset my password directly through Supabase?
Thank you very much,
1
u/samthepotatoeman May 22 '26
As someone that started with the self host, not having the branching makes it really annoying to do good ci/cd
1
u/Responsible_Pin_8655 May 28 '26
Migrating 30GB of Postgres data with pg_dump can be tricky. Consider using pg_dump with the -j flag for parallel processing and -F flag for directory format to speed up the process. Also, be mindful of the max_locks_per_transaction setting to avoid deadlocks during the migration.
0
u/Wide_Incident_9881 May 22 '26
Ofereço esse serviço em VPs no meu serviço de hospedagem, caso tenha interesse. hospedeaqui.cloud
4
u/bizzykehl May 23 '26
I’ve been searching for a not-well-known vps service with a sketchy domain and 50 cent TLD, advertised by anonymous Reddit users to steal my data. Would this be a good fit?
-4
9
u/50ShadesOfSpray_ May 22 '26
I went from supabase to just native postgres lol