Setting up EC2 for docker

  • Add ssh keys to .ssh/autohorized_keys for standard user ubuntu
  • Install docker (see below)
  • Install SSL certificates (see below)

Install docker and setup a swarm

Then initialize the swarm
sudo docker swarm init

Install SSL certificates using certbot

Use the instructions from certbot
Use the certonlysubcommand
As the mail address for notifications, use [email protected]
Add HTTP2.0 capability by following these instructions.