Enable Admin after docker installation

Already installed docker, but didnt enabled admin, any chance to enable without losing all data?

If you have a volume mounted with -v ./vw-data/:/data/ then you should have a shared directory from the host file system that the docker container uses to store the data in.

As long as you already have the volume mount, those files will be persistent on the host file system, and you can stop, change, delete and recreate, and start the docker container without issue as the same volume option -v ./vw-data/:/data/ will map into the container and your previously stored data will be available to the new container.

The admin page can then be enabled and the new container recreated with the extra options needed and restarted.
I would also familiarize yourself with the data structure Vaultwarden uses as all these files will be available in your ./vw-data/ directory or whatever other file system path and directory you chose to set.
Also provides good info on which items would need to be backed up.

okay thanks,

is there any way to edit the config (enable email 2fa) without the admin interface, directly in the files?

All of Vaultwarden’s configurable environment variables should be listed in the .env.template of the main codebase.
Other docker variables can also be passed in your configuration such as variables for things like Rocket, or other containers such as external database, or reverse proxy with something like Caddy.

The config.json file in the vw-data folder, or simply /data/ directory inside the container also can be used with the following parameters


  "_enable_email_2fa": true,
  "email_token_size": 6,
  "email_expiration_time": 600,
  "email_attempts_limit": 3