Last active
January 8, 2024 08:14
-
-
Save amircloner/7434a538c880cb3a49f0e7ea4a2ec14f 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 | |
#curl -sSL https://gist.github.com/amircloner/7434a538c880cb3a49f0e7ea4a2ec14f/raw | bash | |
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 | |
sudo mkdir -m 0755 -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo chmod a+r /etc/apt/keyrings/docker.gpg | |
sudo apt-get -y update | |
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
sudo systemctl start docker.service | |
sudo systemctl enable docker.service | |
sudo systemctl start containerd.service | |
sudo systemctl enable containerd.service | |
docker --version | |
git clone https://github.com/yonggekkk/doprax-xray.git | |
cd doprax-xray/ | |
docker build . -t yonggekkk/doprax-xray | |
docker run -p 8081:80 -e www=3 -e uuid=235bf916-6f56-41f4-b71c-297f3e6e7f00 -d yonggekkk/doprax-xray | |
# 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 netdata | |
docker run -d --name=netdata \ | |
-p 19999:19999 \ | |
-v netdataconfig:/etc/netdata \ | |
-v netdatalib:/var/lib/netdata \ | |
-v netdatacache:/var/cache/netdata \ | |
-v /etc/passwd:/host/etc/passwd:ro \ | |
-v /etc/group:/host/etc/group:ro \ | |
-v /proc:/host/proc:ro \ | |
-v /sys:/host/sys:ro \ | |
-v /etc/os-release:/host/etc/os-release:ro \ | |
--restart unless-stopped \ | |
--cap-add SYS_PTRACE \ | |
--security-opt apparmor=unconfined \ | |
netdata/netdata | |
# 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