Skip to content

tarmacalastair/docker-mail-piler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Piler Docker Container

Description

This Docker deployment runs mariadb and Mail Piler with all its dependencies in a single container.

Delault login credentials are as follows

admin@local
pilerrocks

Web-UI is accesible under port 80. (mostly http://localhost)

Usage via plain docker cli

run the following command but edit your environment variables first:

docker run -d \
  --name=mail-piler \
  -e TZ=Europe/Berlin \
  -e PILER_RETENTION=3650 \
  -e PILER_HOST=piler.yourdomain.com \
  -e MYSQL_DATABASE=piler \
  -e MYSQL_USER=piler-db-user \
  -e MYSQL_PASSWORD=piler123 \
  -e MARIADB_ROOT_PASSWORD=enter-very-secure-root-pw \
  -p 80:80 \
  -p 443:443 \
  -p 25:25 \
  -v piler-data-store:/var/piler/store/00 \
  -v piler-data-sphinx:/var/piler/sphinx \
  -v piler-data-config:/etc/piler \
  -v piler-data-mariadb:/var/lib/mysql \
  --restart unless-stopped \
  fabianbees/mail-piler:latest

⚠️⚠️ IMPORTANT: Bind-Mounts are currently not supported, so you have to use Docker volumes!! ⚠️⚠️

Usage via docker-compose

First create a .env file to substitute variables for your deployment.

Required environment variables

Docker Environment Var Description
PILER_RETENTION
Retention time
PILER_HOST
Piler FQDN
MYSQL_DATABASE
MariaDB database name
MYSQL_USER
MariaDB database user
MYSQL_PASSWORD
MariaDB database pw
MARIADB_ROOT_PASSWORD
MariaDB root pw

Example .env file in the same directory as your docker-compose.yaml file:

PILER_RETENTION=3650
PILER_HOST=piler.yourdomain.com
MYSQL_DATABASE=piler
MYSQL_USER=piler-db-user
MYSQL_PASSWORD=piler123
MARIADB_ROOT_PASSWORD=enter-very-secure-root-pw

Running the stack with docker compose

docker-compose up -d

If using Portainer, just paste the docker-compose.yaml contents into the stack config and add your environment variables directly in the UI.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 75.9%
  • Dockerfile 19.1%
  • PHP 5.0%