Last active
January 8, 2022 09:08
-
-
Save A-Maged/37d2d58334ce936d60e3abc4f10b9d30 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -fsSL https://gist.githubusercontent.com/A-Maged/37d2d58334ce936d60e3abc4f10b9d30/raw/affbcd78e8416c9232631bf55cbae7d5e8971fd3/server.sh | sh