Hello, anyone here has containerized dovecot? Can I ask general advice and experience please? are there any recommended articles/tutorial for containerize deploymnt and auto-scaling? Thank you.
What are you trying to achieve with containerizing? If you want to deploy the container on a orchestrator so it is going to be (re)started on a random hosts. You have to take into account that your storage is persistant, you have to take into account getting something like proxy to redirect traffic etc etc. I managed to get this to work via alpine linux (nice small), but I think I am going back to vm.> -----Original Message----- > From: dovecot <dovecot-bounces at dovecot.org> On Behalf Of MRob > Sent: Tuesday, 24 August 2021 09:13 > To: dovecot at dovecot.org > Subject: Containerize dovecot? > > Hello, anyone here has containerized dovecot? Can I ask general advice > and experience please? are there any recommended articles/tutorial for > containerize deploymnt and auto-scaling? Thank you.
Hi Rob, Am 24.08.21 um 09:13 schrieb MRob:> Hello, anyone here has containerized dovecot? Can I ask general advice > and experience please? are there any recommended articles/tutorial for > containerize deploymnt and auto-scaling? Thank you.We (www.egroupware.org) run Dovecot only containerized: * as mail-server addon to our groupware server: ??? - https://github.com/EGroupware/egroupware/wiki/EGroupwareMail ??? - https://github.com/EGroupware/build.opensuse.org/tree/master/server:eGroupWare/egroupware-mail * for our own SAAS hosting with multiple directors and backend-pairs We use 2 different containers: a) based on Dovecot CE repo including Lua for our push notifications b) based on Alpine for directors, SASL and backend-pairs without push So far we're not autoscaling anything. Ralf -- Ralf Becker EGroupware GmbH [www.egroupware.org] Handelsregister HRB Kaiserslautern 3587 Gesch?ftsf?hrer Birgit und Ralf Becker Leibnizstr. 17, 67663 Kaiserslautern, Germany Telefon +49 631 31657-0
Am 2021-08-24 09:13, schrieb MRob:> Hello, anyone here has containerized dovecot? Can I ask general advice > and experience please? are there any recommended articles/tutorial for > containerize deploymnt and auto-scaling? Thank you.Yes, Mailcow contains Dovecot. And Mailcow has been dockerized. https://github.com/mailcow/mailcow-dockerized -- Mit freundlichen Gr??en, Marc St?rmer Ahornstra?e 5 | 97506 Grafenrheinfeld Tel: 09723 9313969 | Mobil: 0174 3393862 | Fax: 09723 9314810 | mail at marc-stuermer.de
MRob wrote:> Hello, anyone here has containerized dovecot? Can I ask general advice > and experience please? are there any recommended articles/tutorial for > containerize deploymnt and auto-scaling? Thank you.Fairly straight forward. Use LXD running either Ubuntu or Alpine as the Distro. You can also use Docker, which means you'll have to handroll your own LXD-ish filesystem management system (shudder...) using Docker volumes. Good rule... 1) Use Docker for ephemeral data, where all data dies across container restarts. 2) Use LXD for persistent data... SQL databases, IMAP mailstores, etc... where data lives across container restarts. Can you use Docker for this? Yes! Should you? Well... depends on if you have a lot of free time to redevelop and entire set of LXD-ish tools. If you're super lazy... er, I mean efficient, as I am... use LXD...