mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-23 02:39:38 +02:00
use explicit scheme else DB is not created and container fails
1 parent
a4b8d13c02
commit
3bf2474e5a
1 file changed
+1
-1
@@ -19,7 +19,7 @@ Well, that is possible, but there could be some quirks which we do not know of u
|
||||
Make sure you are using the same version of Vaultwarden (Docker or custom build) for both SQLite and MariaDB, don't update the Docker image in-between these steps.
|
||||
To migrate to SQLite we first need to have a SQLite database file which we can use to transfer the data to.
|
||||
For this file to be created you need to stop your current Vaultwarden instance, and configure it to use SQLite.
|
||||
You can do this by changing your `DATABASE_URL` from `DATABASE_URL=mysql://<vaultwarden_user>:<vaultwarden_pw>@mariadb/vaultwarden` to `DATABASE_URL=/data/db.sqlite3` for example. ( `/data` is the internal path within the Docker container of the `-v` volume you use).
|
||||
You can do this by changing your `DATABASE_URL` from `DATABASE_URL=mysql://<vaultwarden_user>:<vaultwarden_pw>@mariadb/vaultwarden` to `DATABASE_URL=sqlite:///data/db.sqlite3` for example. ( `/data` is the internal path within the Docker container of the `-v` volume you use).
|
||||
|
||||
After you have changed the config, start Vaultwarden and it should show you that it executed a few migrations by checking the logs for lines which start with `Executing migration script ....`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user