starlightcrafted / docker-postal

Docker container for Postal (atech/postal)
134 stars 58 forks source link

Archived, use Postal's Docker containers instead https://docs.postalserver.io/install/upgrade-to-v2

docker-postal

Build Status

This project runs daily docker builds for postalhq/postal

Note that builds have recently been moved to a new account and docker-compose.yml files have been updated accordingly. Please check the updates, especially if you are on the old ubuntu tag.

Alpine Linux Container (Default)

For this container, use the alpine folder.

Debian Linux Container

For this container, use the debian folder.

Previously, this was incorrectly named as the "ubuntu" container, if you were using the ubuntu container, you can use this one instead - they are compatiable and the same

Instructions

  1. Change the folder to either debian or alpine, depending on which version you want to use
  2. Open docker-compose.yml
  3. Update MYSQL_ROOT_PASSWORD and RABBITMQ_DEFAULT_PASS everywhere in the file to new secret passwords
  4. Update POSTAL_FNAME (First Name), POSTAL_LNAME (Last Name), POSTAL_PASSWORD, and POSTAL_EMAIL values in the file
  5. Run docker-compose up -d

Notes

Using the postal tool.

To use the postal tool, simply run

docker-compose run postal <parameter>

For example, the following command runs postal initialize inside the container.

docker-compose run postal initialize

Migrations

See https://github.com/atech/postal/wiki/Upgrading. Note that building a new container (or pulling a new version from Docker Hub) will update the files in postal, so all you have to run is postal upgrade after building or retrieving the new container. Updating postal using its auto-update feature is highly not reccomended and likely does not work properly.

Ports

Port mappings may change (as they have in the past). If SMTP/HTTP(s) is not working, verify that the mapped ports are correct.

Anti-Spam / Antivirus

The initial design for the container was to be simple, minimal, and customizable, so Spamassassin and ClamAV are not included by default. Feel free to fork and add to the Dockerfile (though you must set docker-compose.yml to build from Dockerfile and not pull an image), or add them by linking additional containers.

Managed Files

These files are automatically managed by the container. If you wish to adjust them, add them to the persistent_assets mount

Updates