I've been poking around trying to deploy this as well.
You'll want to edit the Dockerfile and make sure your origin is set to whatever url you'll be accessing grimoire from.
However, even doing this, I'm not able to login even when I manual inject a user into pocketbase.
I was literally just about to post this very link, haha