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

First Install docker-ce

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 devops@greater.finance

Add HTTP2.0 capability by following these instructions.

Last updated