Add example for v3 -> v4 migrations utilising Docker

pull/574/head
Amir Zarrinkafsh 2020-01-22 11:42:06 +11:00
parent 9a685fefad
commit d36fbb73b7
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ supported by Authelia v4.
Example of usage:
# Migrate a local database into the targeted database defined in config-v4.yml with Docker
docker run --rm -v /path/to/config-v4.yml:/config.yml -v /old/db/path:/db authelia/authelia authelia migrate local --config=/config.yml --db-path=/db
# Migrate a mongo database into the targeted database defined in config-v4.yml with Docker
docker run --rm -v /path/to/config-v4.yml:/config.yml authelia/authelia authelia migrate mongo --config=/config.yml --url=mongodb://myuser:mypassword@mymongo:27017 --database=authelia
# Migrate a local database into the targeted database defined in config-v4.yml
authelia-scripts migrate local --config=/path/to/config-v4.yml --db-path=/old/db/path