Skip to content

Commit

Permalink
Create 1-click-install-without-nginx.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocdoan authored Mar 3, 2023
1 parent a369228 commit eed6830
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 1-click-install-without-nginx.sh
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit eed6830

Please sign in to comment.