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

1git clone https://github.com/mattermost/mattermost-docker/
2cd 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

1mkdir -pv ./volumes/app/mattermost/{data,logs,config,plugins,client-
2plugins}

You dont need to set the file/folder ownerships with chown now, as you used your current user

1docker-compose up

Original article