Configure GoTrue Database settings and run migrations
masterGoTrue requires a database connection. Currently, only mysql is supported.
DB_DRIVER(string, required): Must bemysql.DATABASE_URLorDB_DATABASE_URL(string, required): Connection string for the database.DB_NAMESPACE(string): Prefix added to all table names.
Important: Migrations are not applied automatically. You must run them after building GoTrue.
GOTRUE_DB_DRIVER=mysql
DATABASE_URL=root@localhost/gotrueRun migrations locally
./gotrue migrateRun migrations using Docker
docker run --rm gotrue gotrue migrate