Add example for v3 -> v4 migrations utilising Docker
parent
9a685fefad
commit
d36fbb73b7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue