Skip to content
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

Closed
nevson opened this issue Jun 29, 2015 · 5 comments
Closed

How to set the Mattermost config in a Docker container? #96

nevson opened this issue Jun 29, 2015 · 5 comments
Assignees

Comments

@nevson
Copy link

nevson commented Jun 29, 2015

Is there some way to set the Mattermost config when starting the Docker container?

@nevson
Copy link
Author

nevson commented Jun 29, 2015

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.

@crspeller crspeller self-assigned this Jun 29, 2015
@crspeller
Copy link
Member

You can access the config by running these commands:

  1. docker exec -ti mattermost-dev /bin/bash
  2. cd src/github.com/mattermost/platform/config
  3. vi config_docker.json
  4. Make your changes
  5. docker stop mattermost-dev
  6. docker start mattermost-dev

@nevson
Copy link
Author

nevson commented Jun 29, 2015

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.

@Hainish
Copy link

Hainish commented Jun 29, 2015

👍

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

@crspeller
Copy link
Member

Closing because question has been answered. If you still have an question, feel free to continue the discussion at http://forum.mattermost.org/.

witjem pushed a commit to witjem/mattermost-server that referenced this issue Oct 6, 2022
…l command (mattermost#96)

* removed unnecisary check for arg i function

* added initial test for listing channel

* added more tests

* ran make docs
hanzei pushed a commit that referenced this issue Jul 13, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants