I am trying to set up the metabase dashboard for crowdsec running inside a docker container. I have given it access to the docker socket, by bind mounting it, but it attempts to create the crowdsec group and fails, as the command is unavailable inside the docker container. So is this feature unsupported or broken for the docker version of crowdsec, or is there any workaround to still get it working?
Yes, we have explicit stated that running cscli dashboard
inside a docker container is not supported as there too much stuff to get working (container layers) plus it will be deprecated in version 1.7.0
.
The way to do it is to build a custom metabase image and use it within the compose:
Do you know how I can set up a user for the dashboard?
EDIT: Nevermind. I found the default credentials and changed them.
EDIT 2: It doesn’t save any preferences and changes and everything is lost when the container is recreated. How can I solve this issue? I don’t think I can just mount the database, I’d neet the premade metabase database file to begin with.