-
Hi guys, I am trying to understand if watchtower is suited for production updates and how you are using it? Right now I am building a self-hosted webapp that constists of 4 docker containers (started with docker-compose) and try to find a good way to update them. The containers will be deployed on customers private VMs. So I have no direct access to them. The whole idea of instantly pushing new changes to running containers seems a bit dangerous and instable for productive apps. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi Rick, I am using it for about 2 years now in production. The danger comes from your docker build, so if you are not sure about the quality of your produced image, you might encounter issues, but this is not really related to watchtower itself. That being said, watchtower does not currently support any rollback mechanism, so you would have to manually push a new image to fix any issues. What kind of integration tests would you have in mind? |
Beta Was this translation helpful? Give feedback.
-
I would too! While I don't want to either encourage or discourage the use of watchtower in production (I've used it myself in a quite big setup), I'd probably do something along the lines of:
Fail and cancel the build at any time if any of the steps are unsuccessful. |
Beta Was this translation helpful? Give feedback.
-
Thanks guys, that seems like a reasonable workflow to minimize errors. Initially I was thinking along the lines of:
I guess my problem is that I am looking for a self-contained solution, which I guess does not exist, since it is always specific for the application stack. |
Beta Was this translation helpful? Give feedback.
I would too!
While I don't want to either encourage or discourage the use of watchtower in production (I've used it myself in a quite big setup), I'd probably do something along the lines of: