Search code examples
dockersupabase

Why does changing the .env password not work in supabase


Why does changing the .env file password not work in Supabase

I changed content like this

DASHBOARD_USERNAME=admin
DASHBOARD_PASSWORD=s123456!!!@

Then I run docker compose restart

Now I login the dashboard with the new username and password, but it's not working! why?

I use the old (default) account and it is ok!


Solution

  • Instead of docker compose restart, try running docker compose down followed by docker compose up. This will recreate the volumes, syncing the changes you have made to your .env file

    See this docker forum thread for more information