mailarchiva: dockerized - ✉️ + 🐋 = 💕
Run Mailarchiva, the email archiving, e-discovery, compliance and forensics platform that helps to retain, organize and mine email data in Docker!
Motivation
The existing projects, which try to run Mailarchiva as a Docker container, are outdated and not working any more. I also disliked that they all tried to mimic the traditional on premise installation which is not necessary for a Tomcat application.
That's why I created this project.
Getting started
Prerequisites
- A Unix-like operating system: macOS, Linux, BSD.
git
should be installed (recommended v2.36.1 or higher)- Docker >= 20.10.14
- Docker-Compose >= v2.5.0
Installation
-
Clone the repository
git clone https://github.com/tgoetten/mailarchiva-docker.git
-
Download latest Mailarchiva WAR file from https://stimulussoft.com/downloads and save it in
files/
wget https://stimulussoft.b-cdn.net/mailarchiva_v8.10.4.war -P files
-
Create a copy of the .env file and adjust it to your needs.
cp env.sample .env
-
(optional) Adapt ``docker-compose.yaml if needed
-
Start
docker-compose up
Update
Before you perform the update steps above it is highly recommended to first create a backup.
-
Download latest Mailarchiva WAR file from https://stimulussoft.com/downloads and save it in
files/
wget https://stimulussoft.b-cdn.net/mailarchiva_v8.10.4.war -P files
-
Update
Dockerfile
to use the new .war file when (re-) building the image. To do this, just update the ENV variable with the new .war filenmaeENV MAILARCHIVA_WAR=mailarchiva_v8.10.4.war \ ...
-
Build image
DOCKER_BUILDKIT=1 docker build -t mailarchiva .
-
Stop and Re-Start the Container
docker-compose stop && docker-compose up -d
Login to Mailarchiva an make sure the version has changed.
Todos
- Automate Download of Mailarchiva WAR file
- Move from debian image to something smaller (less bloat, quicker build)
-
Add instructions to update Mailarchiva to a newer version - Add support for SSL Certificate using Traefik