HOW TO INSTALL ZIMBRA DOCKER

What is Docker ? –

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.

Installing Docker on cent os

First you need to install Docker on the server that you would like to use as a host for the docker containers. For example, here the instructions to install docker – please follow this link

https://docs.docker.com/engine/installation/linux/centos

Follow the next instructions to download the Zimbra-docker package. You might need wget and unzip installed on your OS
Download –

# wget https://github.com/Zimbra-Community/zimbra-docker/archive/master.zip

# unzip master.zip

# cd zimbra-docker/docker

# sudo make

Deploy the Docker container

Now, to deploy the container based on the previous image. As well as publish the Zimbra Collaboration ports, the hostname and the proper DNS, as you want to use bind as a local DNS nameserver within the container, also we will send the password that we want to our Zimbra Server like admin password, mailbox, LDAP, etc :

Syntax of command like this :-

# docker run -p PORTS -h HOSTNAME.DOMAIN –dns DNSSERVER -i -t -e PASSWORD=YOURPASSWORD NAMEOFDOCKERIMAGE

Example of command like this :-

# docker run -p 25:25 -p 80:80 -p 456:456 -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 zimbra86-docker.zimbra.io –dns 127.0.0.1 –dns 8.8.8.8 -i -t -e PASSWORD=Zimbra2015 zimbra_docker

( This will create the container in few seconds, and run automatically the start.sh )

NOTE : –
1- Install a DNS Server based in bind9 and the dnsutils package
2- Configure all the DNS Server to resolve automatically internal the MX and the hostname that we define while launch the container.
3- Install the OS dependencies for Zimbra Collaboration 8.6
4- Create 2 files to automate the Zimbra Collaboration installation, the keystrokes and the config.defaults.
5- Launch the installation of Zimbra based only in the .install.sh -s
6- Inject the config.defaults file with all the parameters that is autoconfigured with the Hostname, domain, IP, and password that you define before.

The script takes a few minutes, dependent on the your Internet Speed, and resources.

Access to the Web Client and Admin Console

The Script will take care of everything and after a few minutes you can go to the IP address of your server and use the following URLs:

Web Client – https://YOURIP
Admin Console – https://YOURIP:7071

THANKSSSSS___

Taggato su: ,