Supabase Old Docker Composer #3471
Replies: 8 comments 5 replies
-
|
the supabase-vector unhealthy error is usually because of missing config or volume permissions. try these:
docker logs supabase-vector
sudo chown -R 1000:1000 ./volumes/
# backup your data first!
docker-compose down
git pull # or download new docker-compose
docker-compose pull
docker-compose up -dwhat version were you on before and what version are you trying to update to? the error logs from vector container would help debug |
Beta Was this translation helpful? Give feedback.
-
|
Let me know if you have any idea |
Beta Was this translation helpful? Give feedback.
-
|
oh nice you fixed with volume 👍 so this error means env variable is not passing to container. adding to add this to vector service: environment:
- LOGFLARE_PUBLIC_ACCESS_TOKEN=${LOGFLARE_PUBLIC_ACCESS_TOKEN}or if you have if you dont use logflare anyway just put dummy value: LOGFLARE_PUBLIC_ACCESS_TOKEN=test123then run: docker-compose up -d --force-recreate vectorif still not working share your vector part from docker-compose.yml i can check |
Beta Was this translation helpful? Give feedback.
-
|
haha welcome to supabase self-hosting 😅 always one more error ok now check analytics logs: docker logs supabase-analyticsand share here what it says but tbh if you doing local dev you probably dont need analytics and vector services. they are for logging/monitoring stuff. you can just comment them out in docker-compose.yml: # analytics:
# image: supabase/logflare
# ...
# vector:
# image: timberio/vector
# ...and remove this way you get clean supabase running without all the monitoring stuff. you can enable them later when you actually need what are you trying to build btw? maybe i can help better if i know your use case |
Beta Was this translation helpful? Give feedback.
-
|
yeah self-hosting supabase is pain honestly 😅 ok i see the problem. look at this line: analytics service trying to connect to you need to create it manually. connect to your postgres and run: CREATE DATABASE _supabase;or via docker: docker exec -it supabase-db psql -U postgres -c "CREATE DATABASE _supabase;"then restart analytics: docker-compose restart analyticsbut honestly bro, if you just want to learn/develop with supabase, just use their cloud free tier. self-hosting is for production stuff and needs lot of devops knowledge. all these analytics, vector, logflare services are just for monitoring. core supabase (db, auth, storage, realtime) works without them. what are you trying to do exactly? maybe cloud version is enough for you? |
Beta Was this translation helpful? Give feedback.
-
|
still same error bro - did you create the database? run this: docker exec -it supabase-db psql -U postgres -c "CREATE DATABASE _supabase;"if it says container not found, check your db container name: docker ps | grep postgresmight be after creating database, restart everything: docker-compose down
docker-compose up -dbtw looking at all these errors... honestly just disable analytics and vector services. they are optional and causing all these headaches. in your docker-compose.yml comment out:
you will have working supabase without logging/monitoring stuff. you can always enable later when you actually need them are you following official supabase self-hosting guide? https://supabase.com/docs/guides/self-hosting/docker which guide/repo are you using? |
Beta Was this translation helpful? Give feedback.
-
|
Yes I follow the documentation, but it's for direct self hosting using docker, not ushing any third party docker providers like dockploy I run this command root@supabase:/etc/dokploy/compose/supabase-zluskb/code# docker exec -it supabase-db psql -U postgres -c "CREATE DATABASE _supabase;" |
Beta Was this translation helpful? Give feedback.
-
|
ohh you using dokploy, that changes things. dokploy has its own networking and volume setup, thats probably why things are breaking ok so database is created now. run this to check: docker exec -it supabase-db psql -U postgres -c "\l"you should see then full restart: docker-compose down
docker-compose up -dif still not working, the problem might be timing - analytics starts before db is fully ready. check if db container is healthy: docker ps | grep supabasebut real talk bro - dokploy + supabase self-host is advanced combo. you're fighting two systems at once 😅 my honest advice:
when your project grows and you actually need self-hosting, you'll have more devops experience to handle these issues what does your project do? maybe i can suggest simpler setup |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Guys,
I just wanted to know, why we're still using an old version of docker composer file for supabase, we've latest releases in supabase and there docker compose file also get updated last month, but we're still using an old version of docker composer, can someone please update this or help me to use latest docker compose version? I tried manually from my side and I got lot's of errors.
"Container supabase-vector Error dependency vector failed to start dependency failed to start: container supabase-vector is unhealthy Error: ❌ Docker command failed Error occurred ❌, check the logs for details."
Beta Was this translation helpful? Give feedback.
All reactions