Last active
September 22, 2022 04:14
-
-
Save amircloner/f1295ff5669728e21d7babca68bf3d4f 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 | |
# wget https://gist.github.com/amircloner/f1295ff5669728e21d7babca68bf3d4f/raw -O caprover-install.sh && chmod +x caprover-install.sh && ./caprover-install.sh | |
# sudo bash -c "$(wget -qO- https://gist.github.com/amircloner/f1295ff5669728e21d7babca68bf3d4f/raw)" | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment