Skip to content

Add Docker reset password instructions #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/reset-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ Forgot your Plausible account password? Here's how to reset your Plausible accou
* Note that after you successfully reset your password, we will automatically log out [any of your active sessions](login-management.md) on your other devices.

<img alt="Reset your account password" src={useBaseUrl('img/reset-password.png')} />

## How to reset Plausible account password in Docker

When you are self-hosting Plausible and have not set up e-mails by some reason you could want
to reset password from CLI.

* Find your main Plausible container by executing `docker ps` (the name should be something like: `plausible-plausible-1`)
* Run `docker exec -it plausible-plausible-1 /app/bin/plausible remote` (command contains example name)
* Run `Plausible.Repo.get_by(Plausible.Auth.User, email: "[email protected]") |> Plausible.Auth.User.set_password("yourNewPassword") |> Plausible.Repo.update`