From a369228546e8670cd5e5a9813b3ba49dc81d3e4c Mon Sep 17 00:00:00 2001 From: ngocdoan Date: Fri, 3 Mar 2023 10:08:31 +0700 Subject: [PATCH 1/4] Update env.example --- env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env.example b/env.example index 006d683..9c9a3dd 100644 --- a/env.example +++ b/env.example @@ -61,7 +61,7 @@ MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes ## This will be 'mattermost-enterprise-edition' or 'mattermost-team-edition' based on the version of Mattermost you're installing. MATTERMOST_IMAGE=mattermost-enterprise-edition -MATTERMOST_IMAGE_TAG=7.1 +MATTERMOST_IMAGE_TAG=latest ## Make Mattermost container readonly. This interferes with the regeneration of root.html inside the container. Only use ## it if you know what you're doing. From eed6830c794f5dabced548795adab522f62ee057 Mon Sep 17 00:00:00 2001 From: ngocdoan Date: Fri, 3 Mar 2023 10:20:13 +0700 Subject: [PATCH 2/4] Create 1-click-install-without-nginx.sh --- 1-click-install-without-nginx.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 1-click-install-without-nginx.sh diff --git a/1-click-install-without-nginx.sh b/1-click-install-without-nginx.sh new file mode 100644 index 0000000..6332168 --- /dev/null +++ b/1-click-install-without-nginx.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Update system +sudo apt update && sudo apt upgrade -y +sudo apt install curl build-essential git wget jq make gcc ack tmux ncdu -y +sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.27.3/yq_linux_amd64 && chmod +x /usr/local/bin/yq + +# install docker +apt update && apt install git sudo unzip wget -y +curl -fsSL https://get.docker.com -o get-docker.sh +sudo sh get-docker.sh +curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose +sudo chmod +x /usr/local/bin/docker-compose +sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose + +# +cp env.example .env +mkdir -p ./volumes/app/mattermost/{config,data,logs,plugins,client/plugins,bleve-indexes} +sudo chown -R 2000:2000 ./volumes/app/mattermost + +sudo docker-compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -d + + From 9321f856a35284e0bf20561de5390573e4e089c1 Mon Sep 17 00:00:00 2001 From: ngocdoan Date: Fri, 3 Mar 2023 10:33:20 +0700 Subject: [PATCH 3/4] Create restart-mm-docker.sh --- restart-mm-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 restart-mm-docker.sh diff --git a/restart-mm-docker.sh b/restart-mm-docker.sh new file mode 100644 index 0000000..b82d18c --- /dev/null +++ b/restart-mm-docker.sh @@ -0,0 +1,4 @@ +#!/bin/bash +sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml down +sleep 5 +sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml up -d From 7d565855e5578b76df21835624cd2859e87348ff Mon Sep 17 00:00:00 2001 From: ngocdoan Date: Fri, 3 Mar 2023 11:31:56 +0700 Subject: [PATCH 4/4] Update restart-mm-docker.sh --- restart-mm-docker.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/restart-mm-docker.sh b/restart-mm-docker.sh index b82d18c..4809dd4 100644 --- a/restart-mm-docker.sh +++ b/restart-mm-docker.sh @@ -1,4 +1,5 @@ #!/bin/bash +sudo apt update && sudo apt upgrade -y sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml down sleep 5 sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml up -d