From 22407495a11fa1338cad6c3402e95717a68033b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D8=AD=D8=B3=D9=86=20=D8=B9=D8=A8=D8=A7=D8=B3=DB=8C?= Date: Mon, 5 Sep 2022 15:27:36 +0430 Subject: [PATCH 1/2] Add docker-compose.yml --- docker/.gitignore | 1 + docker/docker-compose.yml | 24 ++++++++++++++++++++++++ docker/env.example | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 docker/.gitignore create mode 100644 docker/docker-compose.yml create mode 100644 docker/env.example diff --git a/docker/.gitignore b/docker/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/docker/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..bbe4509 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,24 @@ +version: "3" +services: + mail-server: + image: jorgedlcruz/zimbra + hostname: ${HOSTNAME} + environment: + PASSWORD: ${PASSWORD} + ports: + - 25:25 + - 80:80 + - 465:465 + - 587:587 + - 110:110 + - 143:143 + - 993:993 + - 995:995 + - 443:443 + - 8080:8080 + - 8443:8443 + - 7071:7071 + - 9071:9071 + dns: + - 127.0.0.1 + - 8.8.8.8 diff --git a/docker/env.example b/docker/env.example new file mode 100644 index 0000000..7cb5bdc --- /dev/null +++ b/docker/env.example @@ -0,0 +1,2 @@ +PASSWORD=Zimbra2017 +HOSTNAME=zimbra-docker.zimbra.io From 357061a9cc99163b365fbbceafea9fe37960bbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D8=AD=D8=B3=D9=86=20=D8=B9=D8=A8=D8=A7=D8=B3=DB=8C?= Date: Mon, 5 Sep 2022 15:30:43 +0430 Subject: [PATCH 2/2] Add docker-compose running into README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 819313a..27afb36 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,12 @@ As you can see we tell the container the ports we want to expose, and on which p 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. +## Docker Compose +You can run it with docker compose. First of all, copy `env.example` into file `.env`, change it's values such as `PASSWORD` and `HOSTNAME`, and then run: +```bash +docker-compose up -d +``` + ## Contribute to the Project If you like to contribute to the project, you are free to do so, just fork this repo and submit your changes.