Deploy Zimbra Collaboration using docker
- 1 Deploy Zimbra Collaboration Server using Docker
Deploy Zimbra Collaboration Server using Docker
Install Zimbra Collaboration Server and DNS Server with a Script, in a Single-Server, using Docker.
Before you start
This guide is not officially supported by Zimbra, as docker is not in the Operating System, or Virtualization Supported platforms in the System Requirements.
This guide is intended for testing platforms, development, etc.
What is Docker
From the official docker website - Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications. Consisting of a Docker Engine, a portable, lightweight runtime and packaging tool, and Docker Hub, a cloud service for sharing applications and automating workflows, Docker enables apps to be quickly assembled from components and eliminates the friction between development, QA, and production environments. As a result, IT can ship faster and run the same app, unchanged, on laptops, data center VMs, and any cloud.
Advantages of using Docker and the ZimbraEasyInstall Script
- Time saving
- Fully automated
- Easy to use
- Great for a quick Zimbra Preview
First you need to install Docker on the server that you would like to use as a host for the docker containers. If you want to install Docker, please follow the next guide - https://docs.docker.com/engine/installation/
One of the advantages of using docker is that the host OS does not matter, the containers will work on any platform.
Downloading the image
The first step is to pull this image into your docker environment, for that just run the next:
docker pull jorgedlcruz/zimbra
Creating Zimbra Container
Now that we have an image called jorgedlcruz/zimbra, we can do a docker run with some special parameters, like this:
docker run -p 25:25 -p 80:80 -p 465:465 -p 587:587 -p 110:110 -p 143:143 -p 993:993 -p 995:995 -p 443:443 -p 8080:8080 -p 8443:8443 -p 7071:7071 -p 9071:9071 -h zimbra-docker.zimbra.io --dns 127.0.0.1 --dns 22.214.171.124 -i -t -e PASSWORD=Zimbra2017 jorgedlcruz/zimbra
As you can see we tell the container the ports we want to expose, and on which port, we also specify the container hostname, the password foir the Zimbra Administrator Account, and the image to use.
That's it! You can visit now the IP of your Docker Machine using HTTPS, or try the Admin Console with HTTPS and port 7071.
Contribute to the Project
If you like to contribute to the project, you are free to do so, just fork the next repo and submit your changes. - https://github.com/jorgedlcruz/zimbra-docker
- Go to the Github project and give your valuable feedback.