postal/README.md

72 lines
3.6 KiB
Markdown
Raw Permalink Normal View History

2020-04-17 06:55:28 +02:00
# docker-postal
2021-03-18 04:49:41 +01:00
[![Build Status](https://iloveyatoo.semaphoreci.com/badges/docker-postal/branches/master.svg)](https://iloveyatoo.semaphoreci.com/projects/docker-postal) ![](https://img.shields.io/badge/image-catdeployed%2Fpostal-blue?style=flat-square&logo=Docker) ![](https://img.shields.io/docker/pulls/catdeployed/postal?style=flat-square)
2020-04-17 06:55:28 +02:00
This project runs daily docker builds for postalhq/postal
2018-07-24 06:51:11 +02:00
#### Alpine Linux Container (Default)
2021-04-22 07:41:54 +02:00
![](https://img.shields.io/badge/image-catdeployed%2Fpostal:alpine-blue?style=flat-square&logo=Docker) ![](https://img.shields.io/docker/image-size/catdeployed/postal/alpine?style=flat-square)
2018-07-24 06:34:44 +02:00
2018-08-03 04:39:27 +02:00
For this container, use the 'alpine' folder.
2018-07-24 06:34:44 +02:00
#### Ubuntu Linux Container
2021-04-22 07:41:54 +02:00
![](https://img.shields.io/badge/image-catdeployed%2Fpostal:ubuntu-blue?style=flat-square&logo=Docker) ![](https://img.shields.io/docker/image-size/catdeployed/postal/ubuntu?style=flat-square)
2018-07-24 06:33:32 +02:00
2018-08-03 06:16:16 +02:00
For this container, use the 'ubuntu' folder.
2017-04-27 11:23:57 +02:00
### Instructions
2020-04-17 07:08:43 +02:00
1. Change the folder to either `ubuntu` 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`
2017-04-27 11:23:57 +02:00
2020-04-17 07:08:43 +02:00
### Notes
* The `POSTAL_EMAIL` and `POSTAL_PASSWORD` values will be the email and password you use to login
* `POSTAL_EMAIL` and `POSTAL_PASSWORD` will only be used if there is a need to initialize the postal installation. As a result, changing them will not change the admin username or password while postal is already setup
* All the setup instructions are already run
2017-05-06 04:31:47 +02:00
### 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
```
2017-04-28 01:07:05 +02:00
2017-05-06 04:31:47 +02:00
### Migrations
2017-05-13 18:14:25 +02:00
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.
2017-04-27 21:38:31 +02:00
2017-05-11 19:27:27 +02:00
### 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.
2017-05-13 18:08:59 +02:00
### Anti-Spam / Antivirus
2017-05-13 18:14:25 +02:00
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.
2018-08-03 06:02:42 +02:00
2021-03-18 06:23:03 +01:00
### Managed Files
These files are automatically managed by the container. If you wish to adjust them, add them to the `persistent_assets` mount
- config/postal.yml
- config/fast_server.cert
- config/fast_server.key
- config/lets_encrypt.pem
- config/signing.key
2018-08-03 06:02:42 +02:00
### Updates
2021-03-18 06:01:57 +01:00
- v3.1.0
2021-04-22 07:46:02 +02:00
* Fixed username/password injection problem during user creation by adding sleep in between entries
2021-03-18 06:23:03 +01:00
* Updated mountpoint to use symbolic links instead of copying files to allow for app to update assets as needed
* Fixed missing files that should be copied inbetween runs
2020-04-17 07:08:43 +02:00
- v3.0.0
* Move to Gitlab with automated testing
* Add user creation system for more reliability
* Add some more checks on MySQL during startup
2018-08-03 06:02:42 +02:00
- v2.0.0
* Update to more reliable version of YAML management system
* Split into ubuntu and alpine images
2018-08-03 06:06:28 +02:00
* Moved to CircleCI for more advanced building
2018-08-03 06:02:42 +02:00
- v1.0.0
* Initial Release