Ejabberd-docker with MySQL only storing users

I'm using https://github.com/rroemhild/docker-ejabberd and have configured it with MySQL. It works perfectly with the users table. They're stored in the database and I can log in and out with no problems. But the other tables in the database are empty. No rostergroups or anything. They're created in the running Ejabberd but disappears after restart naturally.

Any idea on why?

I assume since there are very few config options in the docker image that it's not configured for it, but it should be. Why wouldn't it store everything in the MySQL?

Any help appreciated! :)

Looking at the default

Looking at the default configuration in the link you mentioned:
https://github.com/rroemhild/docker-ejabberd/blob/master/conf/ejabberd.y...

You can see that the modules don't have their backend configured. As example, see mod_roster, you should add a db_type: odbc to it. See https://docs.ejabberd.im/admin/guide/configuration/#modroster

Example:

modules:
  ...
  mod_roster:
    db_type: odbc
  ...

That did it! Thanks a bunch!

That did it! Thanks a bunch!

Syndicate content