Running mattermost in docker

Ive set this up a few times and the permissions issues get me every time
For reference this seems to be a winning recipe

git clone https://github.com/mattermost/mattermost-docker/
cd mattermost-docker
Edit the docker-compose.yml and change the UID and the GID to your current running user
IMPORTANT! docker-compose build to build the new image
mkdir -pv ./volumes/app/mattermost/{data,logs,config,plugins,client-
plugins}
You dont need to set the file/folder ownerships with chown now, as you used your current user
docker-compose up

 

Original article https://github.com/mattermost/mattermost-docker/issues/407#issuecomment-523006410