Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 945 Bytes

deploy_amazon_aws.md

File metadata and controls

48 lines (41 loc) · 945 Bytes

Deploy Amazon AWS - EC2 - Install Docker - Amazon Linux 2 AMI


       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/

Install

sudo su
yum -y update
yum -y install docker
yum -y install git wget mc screen htop

Install Repo

amazon-linux-extras install epel
yum -y install p7zip
  • Custom Docker
mkdir -p /etc/docker
cat > /etc/docker/daemon.json <<ENDLINE
{
  "bip": "172.17.0.1/24"
}
ENDLINE

systemctl enable docker
systemctl start docker
  • Docker Compose
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m) -o /usr/bin/docker-compose && sudo chmod 755 /usr/bin/docker-compose && docker-compose --version
  • Install Firewall
yum -y install firewalld
systemctl start firewalld
systemctl enable firewalld
systemctl status firewalld