forked from ParveenBhadooOfficial/Bhadoo-Cloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaws-lightsail-install.sh
23 lines (23 loc) · 969 Bytes
/
aws-lightsail-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
sudo apt-get -y update && sudo apt-get -y upgrade &&
sudo apt-get install -y linux-image-extra-virtual &&
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
sudo apt-key fingerprint 0EBFCD88 &&
sudo add-apt-repository -y \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" &&
sudo apt-get -y update &&
sudo apt-get -y install docker-ce &&
sudo docker run hello-world &&
sudo usermod -a -G docker ubuntu &&
sudo docker run --name ct -d -p 80:3000 --restart always -e GOOGLE_CLIENT_ID='***' -e GOOGLE_CLIENT_SECRET='***' -e GOOGLE_REDIRECT_URL='***/oauthCallback' parveenbhadoo/bhadoocloud node server/server.js &&
echo "Installation Complete.
Use http://your-ip-address to connect to server.
Use Cloudflare Flexible SSL for https.
Thank you for installing Bhadoo Cloud."