Cloudformation for installing Postgresql and Docker

Click this link to download script  docker-postgresql Parameters: InstanceType: Type: String Default: t2.micro Description: Enter t2.micro, m1.small, or m1.large. Default is t2.micro. KeyPairName: Description: Amazon EC2 Key Pair Type: “AWS::EC2::KeyPair::KeyName” ImageId: Type: “AWS::EC2::Image::Id” Default: ami-81cefcfd Resources: AppNode: Type: AWS::EC2::Instance Properties: InstanceType: !Ref InstanceType ImageId: !Ref ImageId KeyName: !Ref KeyPairName SecurityGroups: – !Ref AppNodeSG UserData: !Base64 […]

Continue Reading

Install Docker and Enable Remote API on Ubuntu

Download Docker apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable” apt-get update apt-cache policy docker-ce apt-get install -y docker-ce Enable Remote API if [ ! -d “/etc/systemd/system/docker.service.d” ]; then mkdir /etc/systemd/system/docker.service.d fi printf “# /etc/systemd/system/docker.service.d/override.conf\n[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376\n” > /etc/systemd/system/docker.service.d/startup_options.conf systemctl daemon-reload […]

Continue Reading