This repository contains the Dockerfiles for MailerQ from version 5.0 and upward. Automatically built versions are available at at Docker Hub.
Currently, it is a completely self-contained version of MailerQ, for testing purposes.
This image is a self-contained version to run MailerQ locally or in the cloud. It contains RabbitMQ and uses an SQLite database for storage. Note that unless the these storage locations are bound to host folders, storage is ephemeral and a restart will be a completely new instance of MailerQ, with no retained settings and no retained on-queue messages.
The easiest method to get started is to copy the license key from here. If a LICENSE_KEY environmental variable is supplied, MailerQ will automatically fetch the appropriate license.
Alternatively, the file itself can be downloaded, and bound using -v
on container startup to /etc/mailerq/license.txt
. See our documentation for appropriate configuration file values.
First pull the image using docker pull mailerq/mailerq:latest
, then run
docker run -e LICENSE_KEY=<license-key-here> -it mailerq/mailerq:latest
If you get The license file does not contain IP addresses that are configured on this server
, add the --net=host
flag, for example
docker run --net=host -e LICENSE_KEY=<license-key-here> -it mailerq/mailerq:latest
To persist the database settings between runs, the database should be bound to a file on the host machine. This can be done by adding -v `pwd`/database.sqlite:/var/lib/mailerq/database.sqlite
to the command.
latest
- Always points to the most recent stable version, currently5.13
.5.13
- MailerQ 5.135.12
- MailerQ 5.125.11
- MailerQ 5.115.10
- MailerQ 5.105.9
- MailerQ 5.95.8
- MailerQ 5.85.7
- MailerQ 5.75.6
- MailerQ 5.65.5
- MailerQ 5.55.4
- MailerQ 5.45.3
- MailerQ 5.35.2
- MailerQ 5.25.1
- MailerQ 5.15.0
- MailerQ 5.0
This image is an image which can be safely run in production. As opposed to the self-contained image above, in production setting the RabbitMQ server runs separately from the MailerQ server. This is mainly because MailerQ may be ephemeral, and multiple MailerQ instances may connect to a single RabbitMQ instance, all working on the same queue and communication with each other over RabbitMQ.
Although this setup is slightly more involved than the simple standalone image for local testing, it is still relatively simple. To run the image, first create a folder with your configuration files. The folder will contain two files, config.txt
and license.txt
. For more information (and a minimal configuration) see the MailerQ documentation. Copy your config file to the folder, and run the following command.
docker run --net=host -v </path/to/config/folder>:/etc/mailerq/ -it mailerq/mailerq:lastest-unit mailerq --fetch-license <license-key-here>
This will show a prompt asking you to save your license. Type y
, and your license will be saved. You are now done! To run MailerQ, simply run the last command but remove the --fetch-license
part with your license key.
latest-unit
- Always points to the most recent stable version, currently5.13
.5.13-unit
- MailerQ 5.135.12-unit
- MailerQ 5.125.11-unit
- MailerQ 5.115.10-unit
- MailerQ 5.105.9-unit
- MailerQ 5.95.8-unit
- MailerQ 5.85.7-unit
- MailerQ 5.75.6-unit
- MailerQ 5.65.5-unit
- MailerQ 5.55.4-unit
- MailerQ 5.45.3-unit
- MailerQ 5.35.2-unit
- MailerQ 5.25.1-unit
- MailerQ 5.15.0-unit
- MailerQ 5.0