I have a dockerized Mattermost server installed in a container and is working fine. I just wanted to add a few lin commands in my docker-compose file to be able to create the two users I need, instead of having them created manually every time I raise the container.
These are the commands I’m running in my docker-compose:
/mm/mattermost/bin/mattermost user create --email email@example.com --username myuser --password mypassword
/mm/mattermost/bin/mattermost team create --name myteam --display_name “myteam”
/mm/mattermost/bin/mattermost team add myteam user1 user2
When I try to log in with any of the two users I configured, I get “We couldn’t find an account matching your login credentials.”
I tried executing the commands inside the container to check if the compose was failing. This is what a get when I entered the user creation command:
It seems I cannot reach the DataBase for some reason.
I create the Mattermost container I used https://github.com/mattermost/mattermost-docker-preview/