Skip to content

Instantly share code, notes, and snippets.

@mukeshwani
Last active January 25, 2022 12:14
Show Gist options
  • Save mukeshwani/45f2a1ff4a2bf5b20b9973e1eec03d93 to your computer and use it in GitHub Desktop.
Save mukeshwani/45f2a1ff4a2bf5b20b9973e1eec03d93 to your computer and use it in GitHub Desktop.
CapRover Setup Commands
Docker Install steps (Copy and Paste as is within the SSH terminal. Make you are you sudo as root sudo su).
apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker run hello-world
CapRover 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
CapRover Setup (You will need NodeJS and NPM installed on our local computer)
npm install -g caprover
caprover serversetup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment