Setting up Discourse with SSL on Docker with AWS ELB breaks and returns 503 Service Unavailable (Back-end server is at capacity)

I’m a noob in AWS, but for those that are looking for a solution, this worked for me:

  1. Edit the the app.yml, comment out the let’s encrypt templates
## Let's encrypt is not needed, the load balancer issues the certificate
## - "templates/web.ssl.template.yml"
## - "templates/web.letsencrypt.ssl.template.yml"
  1. SSH your instance and run:
  • cd /var/discourse/
  • ./launcher rebuild app
  1. In your ALB create a listener rule for port 80 to redirect to 443
  2. In the 443 listener, create a rule to redirect to your instance