I’m using docker and docker swarm to deploy a set of services. They are working perfectly, and I’m very happy with the set up on my tests, still not in production. However, I’m not that happy with the way I’m doing the deployment, because I feel there may be a smarter way.
Right now, I have a docker-compose.yml file with 3 declared services:
- 4 celery workers
I’m deploying this stack using a CI/CD (gitlab) on every commit right now, using
- docker stack deploy -c docker-compose.yml $STACK_NAME
The only image that actually changes (the worker code change) is the celery-worker one.
So, my question is, is this the best way to deploy an stack?