postal/README.md

38 lines
2.0 KiB
Markdown
Raw Normal View History

2017-04-27 11:23:57 +02:00
## Docker container for [atech/postal](https://github.com/atech/postal)
2017-05-12 04:05:11 +02:00
### Docker Hub Daily Builds
Builds are done every 6 hours by [Codeship](http://codeship.com/)
2017-05-09 22:39:47 +02:00
2017-05-11 04:12:39 +02:00
| tag | Status | Docker Hub |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
2017-05-12 04:09:45 +02:00
| latest | ![Daily Build](https://app.codeship.com/projects/aef32ad0-1807-0135-b213-7e299b644564/status?branch=master) | [alinuxninja/postal:latest](https://hub.docker.com/r/alinuxninja/postal/) |
2017-05-11 01:03:06 +02:00
By default, docker-compose.yml uses Docker Hub for the image and does not do building, though it can be set to build from the included Dockerfile if needed.
2017-04-27 11:23:57 +02:00
### Instructions
2017-04-27 21:38:02 +02:00
Change configuration in docker-compose.yml to update passwords for MySQL/RabbitMQ.
Both passwords in the `postal` service, `mysql` service and `rabbitmq` service have to be changed.
2017-04-27 11:23:57 +02:00
2017-05-06 04:31:47 +02:00
Then, begin by following the directions at https://github.com/atech/postal/wiki/Installation#initialize-database--assets.
Postal can be accessed by checking the section below. Note that "intialize-config" is already run for you, as the database parameters need to be configured before the postal tool can be used.
After configuration is done, run the following to bring the container up.
2017-04-27 11:23:57 +02:00
```
docker-compose up -d
```
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
See https://github.com/atech/postal/wiki/Upgrading.
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.