Create Admin Access to Pocketbase (#224)

Describe the creation of admin accounts for PocketBase more clearly.
This commit is contained in:
huggenknubbel
2025-03-28 16:21:49 +01:00
committed by GitHub
parent 4c62df021d
commit 1c03b895de

View File

@@ -7,7 +7,12 @@ wanderer uses categories to classify what kind of activity a trail belongs to. O
## Backend access
First, you need access to the PocketBase backend. If you are using docker make sure to forward the internal port 8090 to a public port. With the default configuration, the PocketBase admin panel is available at `http://localhost:8090/_/`. If this is your first time visiting the panel you will need to create an admin account. Afterwards, you will have access to all tables in the backend and can modify the underlying data directly.
First, you need access to the PocketBase backend. If you are using docker make sure to forward the internal port 8090 to a public port. With the default configuration, the PocketBase admin panel is available at `http://localhost:8090/_/`. If this is your first time visiting the panel you will need to create an admin account.
To create backend acces navigate to your docker-compose.yaml file and type:
```
docker compose exec -it db /pocketbase superuser upsert email@example.com myverysecurepassword
```
Now, you will have access with the User" email@example.com and the Password "myverysecurepassword" to all tables in the backend and can modify the underlying data directly.
## Modifying categories