Commit Graph

11 Commits

Author SHA1 Message Date
Pan Luo
2a0cf0cb21 Allow config location to be customized from CLI (#66)
* Allow config location to be customized from CLI

Config file should be stored in a persistent storage as it is stores the
app status and configuration. It should be independent from container
life cycle and mounted into app container. This commit allows config
location to be changed through CLI. So that when the persistent storage
is mounted, the location can be pointed to the mounted config file.

Also some updates for best practices:
* extracted version numbers in Dockerfile into a environment variable
* Added mattermost/bin to PATH environment variable

* Add customizable environment variables to readme
2017-02-22 21:37:43 -08:00
Yi EungJun
82a0874255 app: Display hostname and port for database 2016-06-17 00:12:15 +09:00
Yi EungJun
89d58d7a44 app: Allow to give arguments for 'platform' 2016-05-17 21:10:37 +09:00
Pan Luo
031858fbae Allow db host, name user and password to be configurable 2016-04-15 21:31:28 -07:00
Yi EungJun
18c82ea9c6 app: Fix "Failed to open sql connection" error
The app should wait for a moment even after TCP connection to the
database is available.

Rollback a part of ac0b706.
2016-01-29 15:40:34 +09:00
Yi EungJun
75bb4944ac app: Use hostname instead of ip for database 2016-01-25 15:46:08 +09:00
Yi EungJun
ac0b7062a3 app: Fix the message to wait for database
'echo -n' is useless because the message is not logged until sending a
newline character.
2016-01-25 12:31:29 +09:00
Yi EungJun
b4ad7f2119 Wait until database is ready 2015-12-09 18:57:58 +09:00
Yi EungJun
2d908b3cca Fix a bug that config.json is not created
Do not copy config.json into /matteronst/config directly because:

> Changes to a data volume will not be included when you update an image.
>
> -- https://docs.docker.com/engine/userguide/dockervolumes/

Instead copy config.template.json into the root and generate
/mattermost/config/config.json from the file.
2015-12-04 18:08:13 +09:00
Yi EungJun
72df442289 Fix loss of settings when 'app' is recreated 2015-12-04 00:40:22 +09:00
Yi EungJun
4cf5bdc8c8 Docker for mattermost in production
1. Put cert.pem into web/cert and key-no-password.pem into web/cert/private.
2. docker-compose up -d

The settings of the servers are based on
https://github.com/mattermost/platform/blob/master/doc/install/Production-Ubuntu.md.

app/config_docker.json is based on
https://raw.githubusercontent.com/mattermost/platform/master/config/config.json.
2015-11-30 17:54:49 +09:00