From ff571ff4f497c2991fc30d872f7a19b3b4c9c0a6 Mon Sep 17 00:00:00 2001 From: pilsner Date: Fri, 3 Feb 2017 17:00:01 +0900 Subject: [PATCH] set db setting on app also - db setting is available on db - app also uses same valiables (eg. MM_USERNAME...) however there is no hint on compose file. --- docker-compose-v1.yml | 6 ++++++ docker-compose.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/docker-compose-v1.yml b/docker-compose-v1.yml index e01768a..0017aa8 100644 --- a/docker-compose-v1.yml +++ b/docker-compose-v1.yml @@ -22,6 +22,12 @@ app: - ./volumes/app/mattermost/config:/mattermost/config:rw - ./volumes/app/mattermost/data:/mattermost/data:rw - /etc/localtime:/etc/localtime:ro + environment: + # set same as db environment + - MM_USERNAME=mmuser + - MM_PASSWORD=mmuser_password + - MM_DBNAME=mattermost + web: build: web ports: diff --git a/docker-compose.yml b/docker-compose.yml index 6751bd7..eaf0a2e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,11 @@ services: - ./volumes/app/mattermost/config:/mattermost/config:rw - ./volumes/app/mattermost/data:/mattermost/data:rw - /etc/localtime:/etc/localtime:ro + environment: + # set same as db environment + - MM_USERNAME=mmuser + - MM_PASSWORD=mmuser_password + - MM_DBNAME=mattermost web: build: web