-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set the Mattermost config in a Docker container? #96
Comments
fyi, I think the configuration from docker-gitlab can be a good example. Also it would be awesome if you could link in custom docker containers for MySQL and Redis that should be used instead of the internal one as shown here and here. |
You can access the config by running these commands:
|
I see, thanks for the hint. Anyhow it'd be nice if this can be done when starting the container. This would make upgrading the docker container much easier as you can simply pass in a configuration on startup instead of manually editing the config in the container. |
👍 You can also copy the file from the docker container to the host, then use that as the authoritative config file, sharing it with the container at runtime: docker run -d --name=mattermost-tmp mattermost/platform:helium
docker cp mattermost-tmp:/go/src/github.com/mattermost/platform/config/config_docker.json .
docker rm -f mattermost-tmp .... edit config file in host ... docker run --name mattermost-dev -d --publish 8065:80 -v $(pwd)/config_docker.json:/go/src/github.com/mattermost/platform/config/config_docker.json mattermost/platform:helium |
Closing because question has been answered. If you still have an question, feel free to continue the discussion at http://forum.mattermost.org/. |
…l command (mattermost#96) * removed unnecisary check for arg i function * added initial test for listing channel * added more tests * ran make docs
* update dependency version for mattermost-server-v5 * extend pluginAPI with sidebar category functionality * fix linting issues * avoid creating objects on create and update apis * update test cases create and update apis * update mattermost version * use copy instead of passing pointer to slice Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> * update sidebar categries test cases Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Is there some way to set the Mattermost config when starting the Docker container?
The text was updated successfully, but these errors were encountered: