Skip to content

Instantly share code, notes, and snippets.

@A-Maged
Last active January 8, 2022 09:08
Show Gist options
  • Save A-Maged/37d2d58334ce936d60e3abc4f10b9d30 to your computer and use it in GitHub Desktop.
Save A-Maged/37d2d58334ce936d60e3abc4f10b9d30 to your computer and use it in GitHub Desktop.
sudo apt update
# docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
# docker-compose
sudo apt install -y python3-pip
pip3 install docker-compose
sudo ln -s /home/ubuntu/.local/bin/docker-compose /usr/bin/docker-compose
# netstat
sudo apt install net-tools -y
# open port 80
# https://stackoverflow.com/questions/62326988/cant-access-oracle-cloud-always-free-compute-http-port
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo netfilter-persistent save
@A-Maged
Copy link
Author

A-Maged commented Dec 12, 2021

curl -fsSL https://gist.githubusercontent.com/A-Maged/37d2d58334ce936d60e3abc4f10b9d30/raw/affbcd78e8416c9232631bf55cbae7d5e8971fd3/server.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment