AWS ECS Production Docker Deployment

Viewed 452

I've recently started using Docker for my own personal website. So the design my website is basically

Nginx -> Frontend -> Backend -> Database

Currently, the database is hosted using AWS RDS. So we can leave that out for now.

So here's my questions

  1. I currently have my application separated into different repository. Frontend and Backend respectively.

    • Where should I store my 'root' docker-compose.yml file. I can't decide to store it in either the frontend/backend repository.
  2. In a docker-compose.yml file, Can the nginx serve mount a volume from my frontend service without any ports and serve that directory?

  3. I have been trying for so many days but I can't seem to deploy a proper production with Docker with my 3 tier application in ECS Cluster. Is there any good example nginx.conf that I can refer to?

  4. How do I auto-SSL my domain?

Thank you guys!

1 Answers
Related