1
Ask HN: Deploy multiple containers to AWS with CI/CD
I have an API service and an ngnix server in separate containers and (a database for dev) in another container. These three are packaged in a docker-compose.yml file.
Now, how would you deploy this to AWS? Would I create one cluster and use the docker-compose.yml file to somehow deploy it on AWS ECS? Or create a cluster for each container and deploy it separately?
The API service is written in PHP and the nginx server connects to php-fpm to process php files.
What I don't understand is also how tests work. When I commit to a specified branch, will it just run the tests? Or will every commit trigger a build of the image (and the tests are specified as a RUN command in the dockerfile)?
All of this is so confusing, how would you do it?