I am trying to create a stack that has 1 more container in a certain environment. When I run the docker-compose-staging.yml
that has 3 services and then the docker-compose-production.yml
which is the same except for one less service, the removed service does not get stopped.
I have also tried setting scale: 0
in rancher-compose.yml
for this service as well. But it doesn’t seem to stop it.
What is a good way to have a docker-compose.yml
that has one extra service in a specific environment and that can be removed when removed from the compose file?