Skip to content

Commit 41615b1

Browse files
committed
Add Docker reset password instructions
1 parent 2a9f76c commit 41615b1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/reset-password.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ Forgot your Plausible account password? Here's how to reset your Plausible accou
2828
* 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.
2929

3030
<img alt="Reset your account password" src={useBaseUrl('img/reset-password.png')} />
31+
32+
## How to reset Plausible account password in Docker
33+
34+
When you are self-hosting Plausible and have not set up e-mails by some reason you could want
35+
to reset password from CLI.
36+
37+
* Find your main Plausible container by executing `docker ps` (the name should be something like: `plausible-plausible-1`)
38+
* Run `docker exec -it plausible-plausible-1 /app/bin/plausible remote` (command contains example name)
39+
* Run `Plausible.Repo.get_by(Plausible.Auth.User, email: "youremail@example.com") |> Plausible.Auth.User.set_password("yourNewPassword") |> Plausible.Repo.update`

0 commit comments

Comments
 (0)