4
I am redoing a Zabbix server here at the company, where I will upgrade from version 3.2 to 4.0
I’m thinking of using Docker to make life easier, since Dockerhub has images for Zabbix-Server, for Zabbix-Web, and I intend to use the official image of Mysql5.7 as database server.
But here comes the doubt
When I update the OS and Database packages in the Mysql container, it is not simple to move all data from the database, which easily reaches 50Gb to another container.
What would be the most appropriate solution?
I found your question super interesting, so I’ve been talking to a consultant the idea is you map a volume of your database and have only the mysql service running in the container.
– Marconi
The idea of the container is exact and to be ephemeral, as already mentioned, the ideal is for you to persist your data in volumes. Then you can write a dockerfile for your scenario (or mount a Docker-Compose) and just go up, to upgrade will also be quiet.
– Tuxpilgrim
I recommend setting up a lab with your background, using the official images as a base and writing a Docker-Compose, persisting your data in volumes, then you will see if it suits your case ;)
– Tuxpilgrim
In the zabixx documentation already has a very detailed how to, and github repository have some examples of Docker-Compose
– Tuxpilgrim