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
1
sudo docker swarm init
Copied!

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.
Last modified 3yr ago