Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2021 11:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jayanath/6db76af72832f2f93e6cfbf3cd76812b to your computer and use it in GitHub Desktop.
Ghost host instance
Type: AWS::EC2::Instance
Comment: Install docker, ghost, traefik, commento
command: "sudo aws s3 cp s3://{MY-BUCKET-NAME}/blog/config/ /data/traefik/ --recursive"
command: "sudo touch /data/traefik/acme.json"
command: "sudo chmod 600 /data/traefik/*.*"
command: "sudo yum update -y"
command: "yes | sudo amazon-linux-extras install docker"
command: "sudo service docker start"
command: "sudo usermod -a -G docker ec2-user"
command: "sudo yum install -y git"
command: "curl -L`uname -s`-`uname -m` -o /usr/local/bin/docker-compose"
command: "chmod +x /usr/local/bin/docker-compose"
command: "sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose"
command: "docker network create external_network"
command: "docker network create internal_network"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment