I’m using the official docker image for Grav. Everything works fine, however, every time I restart the docker I need to create a user to log in again. Is there a way to persist the login credential in my docker container? I tried to create
user.yaml file with a password and mirror in the docker container as suggested in this post: but didn’t work.
This is my
appreciate any help
I have no clue how the flex-objects plugin works, as I never tried it.
however, storing custom yaml files in the plugin directory is not a recommended procedure.
custom yaml files normally reside under config/plugins and then override the defaults.
did you check if / where a yaml file is created when you create a user in the admin ?
@pablodarde, I’m afraid your have stored the file in the wrong location.
Yaml files containing user accounts are stored in
/user/accounts/username.yamlwith the following content:
Note the matching
username in filename and fullname. Btw. replace
username with a proper name of your choice.