Last active
January 31, 2023 13:46
-
-
Save amircloner/61b8b37fabf92339929c8430f2314f62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sudo bash -c "$(wget -qO- https://gist.github.com/amircloner/61b8b37fabf92339929c8430f2314f62/raw)" | |
# mkdir /captain/ | |
# cp backup.tar | |
apt-get -y update | |
sudo apt-get -y remove docker docker-engine docker.io containerd runc | |
sudo apt-get -y update | |
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get -y update | |
sudo apt-get -y install docker-ce docker-ce-cli containerd.io | |
echo "Waiting for 2 seconds..." | |
echo "Caprover going to install" | |
ufw allow 80,443,3000,996,7946,4789,2377/tcp; ufw allow 7946,4789,2377/udp; | |
docker run -p 80:80 -p 443:443 -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock -v /captain:/captain caprover/caprover | |
# fix Domain Verification Failed - Error 1107! | |
echo "{\"skipVerifyingDomains\":\"true\"}" > /captain/data/config-override.json | |
docker service update captain-captain --force | |
# install vnStat | |
docker run -d \ | |
--restart=unless-stopped \ | |
--network=host \ | |
-e HTTP_PORT=8685 \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
-v /etc/timezone:/etc/timezone:ro \ | |
--name vnstat \ | |
vergoh/vnstat | |
# install google BBR | |
wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment