For a few days I am trying to develop custom script which includes mnesia module. I got stuck on the first step: mnesia is undefined in the VerneMQ environment.
VerneMQ is running in the docker container.
By starting erlang in container's terminal I can successfully start mnesia by writting: mnesia:create_schema([node()]).
The same function called in the VerneMQ hook is returned with error: "call to undefined function mnesia:create_schema".
I am not very familiar with erlang, and maybe there is something obvious and easily fixable? Thank you in advance.
P.S. I tried to write "mnesia" in .app.src under "applications" or "modules", but no luck.