I have a docker-compose.yml file that deploys several services to AWS ECS. This works fine. However, there are some services that I don't want deployed to ECS. I would like for these docker containers to run locally instead WHILE the other services are deployed on AWS ECS.
I can't find any documentation on this. What settings would I have to set in my docker-compose.yml file so that a specific service is built and run locally instead of being deployed to AWS ECS?
CodePudding user response:
It sounds like you need to create two separate docker-compose.yaml
files. One could be called local-only-compose.yaml
or something. When running locally you can pass multiple compose YAML files to docker-compose
. When deploying to AWS you could pass only the file with the services you want to deploy to ECS.